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 Bits |
docsWithField |
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 Bits |
getDocsWithValue(LeafReaderContext context,
String field)
Retrieves a
Bits instance representing documents that have a value in this segment. |
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 Bits docsWithField
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
protected Bits getDocsWithValue(LeafReaderContext context, String field) throws IOException
Bits
instance representing documents that have a value in this segment.IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.