Module org.apache.lucene.core
Class ScalarQuantizer.FloatSelector
java.lang.Object
org.apache.lucene.util.Selector
org.apache.lucene.util.IntroSelector
org.apache.lucene.util.quantization.ScalarQuantizer.FloatSelector
- Enclosing class:
ScalarQuantizer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcomparePivot(int j) Compare the pivot with the slot atj, similarly tocompare(i, j).protected voidsetPivot(int i) Save the value at slotiso that it can later be used as a pivot, seeIntroSelector.comparePivot(int).protected voidswap(int i, int j) Swap values at slotsiandj.Methods inherited from class org.apache.lucene.util.IntroSelector
compare, select
-
Field Details
-
pivot
float pivot -
arr
private final float[] arr
-
-
Constructor Details
-
FloatSelector
private FloatSelector(float[] arr)
-
-
Method Details
-
setPivot
protected void setPivot(int i) Description copied from class:IntroSelectorSave the value at slotiso that it can later be used as a pivot, seeIntroSelector.comparePivot(int).- Specified by:
setPivotin classIntroSelector
-
comparePivot
protected int comparePivot(int j) Description copied from class:IntroSelectorCompare the pivot with the slot atj, similarly tocompare(i, j).- Specified by:
comparePivotin classIntroSelector
-
swap
protected void swap(int i, int j) Description copied from class:SelectorSwap values at slotsiandj.
-