Class LongComparator
- All Implemented Interfaces:
org.apache.lucene.search.LeafFieldComparator
@Deprecated(since="10.7",
forRemoval=true)
public class LongComparator
extends org.apache.lucene.search.FieldComparator.NumericComparator<Long>
Deprecated, for removal: This API element is subject to removal in a future version.
Based on
Parses field's values as long (using
FieldComparator.LongComparator, this version is modified to not eagerly allocate
very large arrays.
Parses field's values as long (using
LeafReader.getNumericDocValues(String) and sorts by ascending value-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator
org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.NumericComparator<T extends Number>, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.TermOrdValComparator, org.apache.lucene.search.FieldComparator.TermValComparator -
Field Summary
Fields inherited from class org.apache.lucene.search.FieldComparator.NumericComparator
currentReaderValues, field, missingValue -
Constructor Summary
ConstructorsConstructorDescriptionLongComparator(int numHits, String field, Long missingValue) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new comparator based onLong.compare(long, long)fornumHits. -
Method Summary
Modifier and TypeMethodDescriptionintcompare(int slot1, int slot2) Deprecated, for removal: This API element is subject to removal in a future version.intcompareBottom(int doc) Deprecated, for removal: This API element is subject to removal in a future version.intcompareTop(int doc) Deprecated, for removal: This API element is subject to removal in a future version.voidcopy(int slot, int doc) Deprecated, for removal: This API element is subject to removal in a future version.voidsetBottom(int bottom) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTopValue(Long value) Deprecated, for removal: This API element is subject to removal in a future version.value(int slot) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.apache.lucene.search.FieldComparator.NumericComparator
doSetNextReader, getNumericDocValuesMethods inherited from class org.apache.lucene.search.SimpleFieldComparator
getLeafComparator, setScorerMethods inherited from class org.apache.lucene.search.FieldComparator
compareValues
-
Constructor Details
-
LongComparator
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new comparator based onLong.compare(long, long)fornumHits. When a document has no value for the field,missingValueis substituted.
-
-
Method Details
-
compare
public int compare(int slot1, int slot2) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
comparein classorg.apache.lucene.search.FieldComparator<Long>
-
compareBottom
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
copy
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
setBottom
public void setBottom(int bottom) Deprecated, for removal: This API element is subject to removal in a future version. -
setTopValue
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setTopValuein classorg.apache.lucene.search.FieldComparator<Long>
-
value
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
valuein classorg.apache.lucene.search.FieldComparator<Long>
-
compareTop
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-