public abstract static class FieldComparator.NumericComparator<T extends java.lang.Number> extends SimpleFieldComparator<T>
FieldComparator.DocComparator, FieldComparator.DoubleComparator, FieldComparator.FloatComparator, FieldComparator.IntComparator, FieldComparator.LongComparator, FieldComparator.NumericComparator<T extends java.lang.Number>, FieldComparator.RelevanceComparator, FieldComparator.TermOrdValComparator, FieldComparator.TermValComparator
Modifier and Type | Field and Description |
---|---|
protected NumericDocValues |
currentReaderValues |
protected java.lang.String |
field |
protected T |
missingValue |
Constructor and Description |
---|
NumericComparator(java.lang.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,
java.lang.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 T extends java.lang.Number missingValue
protected final java.lang.String field
protected NumericDocValues currentReaderValues
public NumericComparator(java.lang.String field, T missingValue)
protected void doSetNextReader(LeafReaderContext context) throws java.io.IOException
SimpleFieldComparator
context
.doSetNextReader
in class SimpleFieldComparator<T extends java.lang.Number>
java.io.IOException
protected NumericDocValues getNumericDocValues(LeafReaderContext context, java.lang.String field) throws java.io.IOException
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.