private static class DoubleValuesSource.DoubleValuesSortField extends SortField
SortField.Type| Modifier and Type | Field and Description |
|---|---|
(package private) DoubleValuesSource |
producer |
FIELD_DOC, FIELD_SCORE, missingValue, reverse, STRING_FIRST, STRING_LAST| Constructor and Description |
|---|
DoubleValuesSortField(DoubleValuesSource 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, setBytesComparatorfinal DoubleValuesSource producer
DoubleValuesSortField(DoubleValuesSource producer, boolean reverse)
public void setMissingValue(java.lang.Object missingValue)
SortFieldsetMissingValue in class SortFieldpublic boolean needsScores()
SortFieldneedsScores in class SortFieldpublic SortField rewrite(IndexSearcher searcher) throws java.io.IOException
SortFieldSortField.Type.REWRITEABLE