org.apache.lucene.search
Class FieldComparator.NumericComparator<T extends Number>
java.lang.Object
org.apache.lucene.search.FieldComparator<T>
org.apache.lucene.search.FieldComparator.NumericComparator<T>
- Direct Known Subclasses:
- FieldComparator.ByteComparator, FieldComparator.DoubleComparator, FieldComparator.FloatComparator, FieldComparator.IntComparator, FieldComparator.LongComparator, FieldComparator.ShortComparator
- Enclosing class:
- FieldComparator<T>
public abstract static class FieldComparator.NumericComparator<T extends Number>
- extends FieldComparator<T>
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator |
FieldComparator.ByteComparator, FieldComparator.DocComparator, FieldComparator.DoubleComparator, FieldComparator.FloatComparator, FieldComparator.IntComparator, FieldComparator.LongComparator, FieldComparator.NumericComparator<T extends Number>, FieldComparator.RelevanceComparator, FieldComparator.ShortComparator, FieldComparator.StringComparatorLocale, FieldComparator.StringOrdValComparator, FieldComparator.StringValComparator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
missingValue
protected final T extends Number missingValue
field
protected final String field
docsWithField
protected Bits docsWithField
FieldComparator.NumericComparator
public FieldComparator.NumericComparator(String field,
T missingValue)
setNextReader
public void setNextReader(IndexReader reader,
int docBase)
throws IOException
- Description copied from class:
FieldComparator
- Set a new Reader. All doc correspond to the current Reader.
- Specified by:
setNextReader
in class FieldComparator<T extends Number>
- Parameters:
reader
- current readerdocBase
- docBase of this reader
- Throws:
IOException