public abstract static class FieldComparator.NumericComparator<T extends Number> extends SimpleFieldComparator<T>
FieldComparator.DocComparator, FieldComparator.DoubleComparator, FieldComparator.FloatComparator, FieldComparator.IntComparator, FieldComparator.LongComparator, FieldComparator.NumericComparator<T extends Number>, FieldComparator.RelevanceComparator, FieldComparator.TermOrdValComparator, FieldComparator.TermValComparator| Modifier and Type | Field and Description |
|---|---|
protected NumericDocValues |
currentReaderValues |
protected String |
field |
protected T |
missingValue |
| Constructor and Description |
|---|
NumericComparator(String field,
T missingValue) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSetNextReader(LeafReaderContext context)
This method is called before collecting
context. |
protected NumericDocValues |
getNumericDocValues(LeafReaderContext context,
String field)
Retrieves the NumericDocValues for the field in this segment
|
getLeafComparator, setScorercompare, compareValues, setTopValue, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareBottom, compareTop, copy, setBottomprotected final String field
protected NumericDocValues currentReaderValues
protected void doSetNextReader(LeafReaderContext context) throws IOException
SimpleFieldComparatorcontext.doSetNextReader in class SimpleFieldComparator<T extends Number>IOExceptionprotected NumericDocValues getNumericDocValues(LeafReaderContext context, String field) throws IOException
IOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.