Module org.elasticsearch.server
Class HalfFloatComparator
public class HalfFloatComparator
extends org.apache.lucene.search.comparators.NumericComparator<Float>
Comparator for hal_float values.
This comparator provides a skipping functionality – an iterator that can skip over non-competitive documents.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassLeaf comparator forHalfFloatComparatorthat provides skipping functionalityNested classes/interfaces inherited from class org.apache.lucene.search.comparators.NumericComparator
org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparatorNested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator
org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.TermValComparator -
Field Summary
FieldsFields inherited from class org.apache.lucene.search.comparators.NumericComparator
field, hitsThresholdReached, missingValue, pruning, queueFull, reverse, singleSort, topValueSet -
Constructor Summary
ConstructorsConstructorDescriptionHalfFloatComparator(int numHits, String field, Float missingValue, boolean reverse, org.apache.lucene.search.Pruning pruning) -
Method Summary
Modifier and TypeMethodDescriptionintcompare(int slot1, int slot2) org.apache.lucene.search.LeafFieldComparatorgetLeafComparator(org.apache.lucene.index.LeafReaderContext context) voidsetTopValue(Float value) value(int slot) Methods inherited from class org.apache.lucene.search.comparators.NumericComparator
disableSkipping, setSingleSortMethods inherited from class org.apache.lucene.search.FieldComparator
compareValues
-
Field Details
-
topValue
protected float topValue -
bottom
protected float bottom
-
-
Constructor Details
-
HalfFloatComparator
-
-
Method Details
-
compare
public int compare(int slot1, int slot2) - Specified by:
comparein classorg.apache.lucene.search.FieldComparator<Float>
-
setTopValue
- Overrides:
setTopValuein classorg.apache.lucene.search.comparators.NumericComparator<Float>
-
value
- Specified by:
valuein classorg.apache.lucene.search.FieldComparator<Float>
-
getLeafComparator
public org.apache.lucene.search.LeafFieldComparator getLeafComparator(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
getLeafComparatorin classorg.apache.lucene.search.FieldComparator<Float>- Throws:
IOException
-