java.lang.Object
org.apache.lucene.search.FieldComparator<Long>
org.elasticsearch.lucene.comparators.XNumericComparator<Long>
org.elasticsearch.lucene.comparators.XLongComparator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassLeaf comparator forLongComparatorthat provides skipping functionalityNested classes/interfaces inherited from class org.elasticsearch.lucene.comparators.XNumericComparator
XNumericComparator.CompetitiveDISIBuilder, XNumericComparator.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.elasticsearch.lucene.comparators.XNumericComparator
field, hitsThresholdReached, missingValue, pruning, queueFull, reverse, singleSort, topValueSet -
Constructor Summary
ConstructorsConstructorDescriptionXLongComparator(int numHits, String field, Long 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) protected longvoidsetTopValue(Long value) protected longsortableBytesToLong(byte[] bytes) Decode sortable bytes to long.value(int slot) Methods inherited from class org.elasticsearch.lucene.comparators.XNumericComparator
disableSkipping, setSingleSortMethods inherited from class org.apache.lucene.search.FieldComparator
compareValues
-
Field Details
-
topValue
protected long topValue -
bottom
protected long bottom
-
-
Constructor Details
-
XLongComparator
-
-
Method Details
-
compare
public int compare(int slot1, int slot2) - Specified by:
comparein classorg.apache.lucene.search.FieldComparator<Long>
-
setTopValue
- Overrides:
setTopValuein classXNumericComparator<Long>
-
value
- Specified by:
valuein classorg.apache.lucene.search.FieldComparator<Long>
-
missingValueAsComparableLong
protected long missingValueAsComparableLong()- Specified by:
missingValueAsComparableLongin classXNumericComparator<Long>
-
sortableBytesToLong
protected long sortableBytesToLong(byte[] bytes) Description copied from class:XNumericComparatorDecode sortable bytes to long. It should be consistent with the codec thatPointValuesof this field is using.- Specified by:
sortableBytesToLongin classXNumericComparator<Long>
-
getLeafComparator
public org.apache.lucene.search.LeafFieldComparator getLeafComparator(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
getLeafComparatorin classorg.apache.lucene.search.FieldComparator<Long>- Throws:
IOException
-