private static class LongValuesSource.LongValuesSortField extends SortField
SortField.Type
Modifier and Type | Field and Description |
---|---|
(package private) LongValuesSource |
producer |
FIELD_DOC, FIELD_SCORE, missingValue, reverse, STRING_FIRST, STRING_LAST
Constructor and Description |
---|
LongValuesSortField(LongValuesSource producer,
boolean reverse) |
Modifier and Type | Method and Description |
---|---|
boolean |
needsScores()
Whether the relevance score is needed to sort documents.
|
SortField |
rewrite(IndexSearcher searcher)
Rewrites this SortField, returning a new SortField if a change is made.
|
void |
setMissingValue(java.lang.Object missingValue)
Set the value to use for documents that don't have a value.
|
java.lang.String |
toString() |
equals, getBytesComparator, getComparator, getComparatorSource, getField, getMissingValue, getReverse, getType, hashCode, setBytesComparator
final LongValuesSource producer
public LongValuesSortField(LongValuesSource producer, boolean reverse)
public void setMissingValue(java.lang.Object missingValue)
SortField
setMissingValue
in class SortField
public boolean needsScores()
SortField
needsScores
in class SortField
public SortField rewrite(IndexSearcher searcher) throws java.io.IOException
SortField
SortField.Type.REWRITEABLE