Module org.elasticsearch.server
Class HalfFloatComparator.HalfFloatLeafComparator
java.lang.Object
org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
org.elasticsearch.index.fielddata.fieldcomparator.HalfFloatComparator.HalfFloatLeafComparator
- All Implemented Interfaces:
org.apache.lucene.search.LeafFieldComparator
- Enclosing class:
HalfFloatComparator
public class HalfFloatComparator.HalfFloatLeafComparator
extends org.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
Leaf comparator for
HalfFloatComparator that provides skipping functionality-
Field Summary
Fields inherited from class org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
docValues -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareBottom(int doc) protected intprotected intintcompareTop(int doc) voidcopy(int slot, int doc) protected voidencodeBottom(byte[] packedValue) protected voidencodeTop(byte[] packedValue) voidsetBottom(int slot) Methods inherited from class org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
competitiveIterator, getNumericDocValues, setHitsThresholdReached, setScorer
-
Constructor Details
-
HalfFloatLeafComparator
public HalfFloatLeafComparator(org.apache.lucene.index.LeafReaderContext context) throws IOException - Throws:
IOException
-
-
Method Details
-
setBottom
- Specified by:
setBottomin interfaceorg.apache.lucene.search.LeafFieldComparator- Overrides:
setBottomin classorg.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator- Throws:
IOException
-
compareBottom
- Throws:
IOException
-
compareTop
- Throws:
IOException
-
copy
- Specified by:
copyin interfaceorg.apache.lucene.search.LeafFieldComparator- Overrides:
copyin classorg.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator- Throws:
IOException
-
compareMissingValueWithTopValue
protected int compareMissingValueWithTopValue()- Specified by:
compareMissingValueWithTopValuein classorg.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
-
compareMissingValueWithBottomValue
protected int compareMissingValueWithBottomValue()- Specified by:
compareMissingValueWithBottomValuein classorg.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
-
encodeBottom
protected void encodeBottom(byte[] packedValue) - Specified by:
encodeBottomin classorg.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
-
encodeTop
protected void encodeTop(byte[] packedValue) - Specified by:
encodeTopin classorg.apache.lucene.search.comparators.NumericComparator<Float>.org.apache.lucene.search.comparators.NumericComparator.NumericLeafComparator
-