Class AbstractScoreComputedFieldComparatorSource.AbstractFieldComparator
- All Implemented Interfaces:
org.apache.lucene.search.LeafFieldComparator
- Enclosing class:
AbstractScoreComputedFieldComparatorSource
protected abstract class AbstractScoreComputedFieldComparatorSource.AbstractFieldComparator
extends org.apache.lucene.search.SimpleFieldComparator<Long>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator
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.TermOrdValComparator, org.apache.lucene.search.FieldComparator.TermValComparator -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcompare(int slot1, int slot2) intcompareBottom(int doc) intcompareTop(int doc) voidcopy(int slot, int doc) protected abstract longgetDocumentScore(int doc) protected longgetOrdScore(int ord) protected voidloadOrdScores(int ordsCount) protected abstract intlookupTerm(org.apache.lucene.util.BytesRef term) voidsetBottom(int bottom) voidsetTopValue(Long value) value(int slot) Methods inherited from class org.apache.lucene.search.SimpleFieldComparator
doSetNextReader, getLeafComparator, setScorerMethods inherited from class org.apache.lucene.search.FieldComparator
compareValues
-
Field Details
-
field
-
-
Method Details
-
compare
public int compare(int slot1, int slot2) - Specified by:
comparein classorg.apache.lucene.search.FieldComparator<Long>
-
compareBottom
- Throws:
IOException
-
copy
- Throws:
IOException
-
loadOrdScores
- Throws:
IOException
-
getDocumentScore
- Throws:
IOException
-
lookupTerm
- Throws:
IOException
-
setTopValue
- Specified by:
setTopValuein classorg.apache.lucene.search.FieldComparator<Long>
-
compareTop
- Throws:
IOException
-
setBottom
public void setBottom(int bottom) -
getOrdScore
protected long getOrdScore(int ord) -
value
- Specified by:
valuein classorg.apache.lucene.search.FieldComparator<Long>
-