java.lang.Object
org.apache.lucene.util.Sorter
org.apache.lucene.util.IntroSorter
org.elasticsearch.index.codec.vectors.diskbbq.IntSorter

public class IntSorter extends org.apache.lucene.util.IntroSorter
  • Constructor Summary

    Constructors
    Constructor
    Description
    IntSorter(int[] arr, org.apache.lucene.util.hnsw.IntToIntFunction func)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
    compare(int a, int b)
     
    protected int
    comparePivot(int j)
     
    protected void
    setPivot(int i)
     
    protected void
    swap(int i, int j)
     

    Methods inherited from class org.apache.lucene.util.IntroSorter

    sort

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IntSorter

      public IntSorter(int[] arr, org.apache.lucene.util.hnsw.IntToIntFunction func)
  • Method Details

    • setPivot

      protected void setPivot(int i)
      Specified by:
      setPivot in class org.apache.lucene.util.IntroSorter
    • comparePivot

      protected int comparePivot(int j)
      Specified by:
      comparePivot in class org.apache.lucene.util.IntroSorter
    • compare

      protected int compare(int a, int b)
      Overrides:
      compare in class org.apache.lucene.util.IntroSorter
    • swap

      protected void swap(int i, int j)
      Specified by:
      swap in class org.apache.lucene.util.Sorter