public abstract class NumericComparator<T extends Number> extends FieldComparator<T>
| Modifier and Type | Class and Description |
|---|---|
class |
NumericComparator.NumericLeafComparator
Leaf comparator for
NumericComparator that provides skipping functionality |
FieldComparator.RelevanceComparator, FieldComparator.TermOrdValComparator, FieldComparator.TermValComparator| Modifier and Type | Field and Description |
|---|---|
protected String |
field |
protected boolean |
hitsThresholdReached |
protected T |
missingValue |
protected boolean |
queueFull |
protected boolean |
reverse |
protected boolean |
singleSort |
protected boolean |
topValueSet |
| Modifier | Constructor and Description |
|---|---|
protected |
NumericComparator(String field,
T missingValue,
boolean reverse,
int sortPos,
int bytesCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableSkipping()
Informs the comparator that the skipping of documents should be disabled.
|
void |
setSingleSort()
Informs the comparator that sort is done on this single field.
|
void |
setTopValue(T value)
Record the top value, for future calls to
LeafFieldComparator.compareTop(int). |
compare, compareValues, getLeafComparator, valueprotected final String field
protected final boolean reverse
protected boolean topValueSet
protected boolean singleSort
protected boolean hitsThresholdReached
protected boolean queueFull
public void disableSkipping()
FieldComparatordisableSkipping in class FieldComparator<T extends Number>public void setTopValue(T value)
FieldComparatorLeafFieldComparator.compareTop(int). This is only called for searches that
use searchAfter (deep paging), and is called before any
calls to FieldComparator.getLeafComparator(LeafReaderContext).setTopValue in class FieldComparator<T extends Number>public void setSingleSort()
FieldComparatorsetSingleSort in class FieldComparator<T extends Number>Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.