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, setScorer
compare, compareValues, setTopValue, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareBottom, compareTop, copy, setBottom
protected final String field
protected NumericDocValues currentReaderValues
protected void doSetNextReader(LeafReaderContext context) throws IOException
SimpleFieldComparator
context
.doSetNextReader
in class SimpleFieldComparator<T extends Number>
IOException
protected NumericDocValues getNumericDocValues(LeafReaderContext context, String field) throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.