public class LuceneMultiTermFieldComparator<T> extends LuceneTermFieldComparator<T>
org.apache.lucene.search.FieldComparator.ByteComparator, org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.NumericComparator<T extends Number>, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.ShortComparator, org.apache.lucene.search.FieldComparator.TermOrdValComparator, org.apache.lucene.search.FieldComparator.TermValComparator
Constructor and Description |
---|
LuceneMultiTermFieldComparator(String fieldName,
Function<Iterable<org.apache.lucene.util.BytesRef>,T> parser,
Comparator<T> comparator,
int numHits) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.index.SortedSetDocValues |
getDocTermOrds(org.apache.lucene.index.AtomicReaderContext context) |
Function<Iterable<org.apache.lucene.util.BytesRef>,T> |
getParser() |
protected T |
getSortValue(int doc) |
org.apache.lucene.search.FieldComparator<T> |
setNextReader(org.apache.lucene.index.AtomicReaderContext context) |
compare, compareBottom, compareDocToValue, compareValues, copy, getFieldName, getTerms, setBottom, value
public org.apache.lucene.search.FieldComparator<T> setNextReader(org.apache.lucene.index.AtomicReaderContext context) throws IOException
setNextReader
in class LuceneTermFieldComparator<T>
IOException
protected org.apache.lucene.index.SortedSetDocValues getDocTermOrds(org.apache.lucene.index.AtomicReaderContext context) throws IOException
IOException
protected T getSortValue(int doc)
getSortValue
in class LuceneTermFieldComparator<T>
Copyright © 2003–2018 Atlassian. All rights reserved.