Module org.elasticsearch.server
Class IntSorter
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected intcompare(int a, int b) protected intcomparePivot(int j) protected voidsetPivot(int i) protected voidswap(int i, int j) Methods inherited from class org.apache.lucene.util.IntroSorter
sort
-
Constructor Details
-
IntSorter
public IntSorter(int[] arr, org.apache.lucene.util.hnsw.IntToIntFunction func)
-
-
Method Details
-
setPivot
protected void setPivot(int i) - Specified by:
setPivotin classorg.apache.lucene.util.IntroSorter
-
comparePivot
protected int comparePivot(int j) - Specified by:
comparePivotin classorg.apache.lucene.util.IntroSorter
-
compare
protected int compare(int a, int b) - Overrides:
comparein classorg.apache.lucene.util.IntroSorter
-
swap
protected void swap(int i, int j) - Specified by:
swapin classorg.apache.lucene.util.Sorter
-