public abstract static class FieldComparator.NumericComparator<T extends Number> extends FieldComparator<T>
FieldComparator.ByteComparator, FieldComparator.DocComparator, FieldComparator.DoubleComparator, FieldComparator.FloatComparator, FieldComparator.FloatDocValuesComparator, FieldComparator.IntComparator, FieldComparator.IntDocValuesComparator, FieldComparator.LongComparator, FieldComparator.NumericComparator<T extends Number>, FieldComparator.RelevanceComparator, FieldComparator.ShortComparator, FieldComparator.TermOrdValComparator, FieldComparator.TermOrdValDocValuesComparator, FieldComparator.TermValComparator, FieldComparator.TermValDocValuesComparator
Modifier and Type | Field and Description |
---|---|
protected Bits |
docsWithField |
protected String |
field |
protected T |
missingValue |
Constructor and Description |
---|
FieldComparator.NumericComparator(String field,
T missingValue) |
Modifier and Type | Method and Description |
---|---|
FieldComparator<T> |
setNextReader(AtomicReaderContext context)
Set a new
AtomicReaderContext . |
binarySearch, binarySearch, compare, compareBottom, compareDocToValue, compareValues, copy, setBottom, setScorer, value
public FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException
FieldComparator
AtomicReaderContext
. All subsequent docIDs are relative to
the current reader (you must add docBase if you need to
map it to a top-level docID).setNextReader
in class FieldComparator<T extends Number>
context
- current reader contextIOException
- if there is a low-level IO errorCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.