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
private static class ScalarQuantizer.FloatSelector extends IntroSelector
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FloatSelector(float[] arr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
comparePivot(int j)
Compare the pivot with the slot atj
, similarly tocompare(i, j)
.protected void
setPivot(int i)
Save the value at sloti
so that it can later be used as a pivot, seeIntroSelector.comparePivot(int)
.protected void
swap(int i, int j)
Swap values at slotsi
andj
.-
Methods inherited from class org.apache.lucene.util.IntroSelector
compare, select
-
-
-
-
Method Detail
-
setPivot
protected void setPivot(int i)
Description copied from class:IntroSelector
Save the value at sloti
so that it can later be used as a pivot, seeIntroSelector.comparePivot(int)
.- Specified by:
setPivot
in classIntroSelector
-
comparePivot
protected int comparePivot(int j)
Description copied from class:IntroSelector
Compare the pivot with the slot atj
, similarly tocompare(i, j)
.- Specified by:
comparePivot
in classIntroSelector
-
-