Package org.apache.lucene.search
Class LongValuesSource.LongValuesSortField
- java.lang.Object
-
- org.apache.lucene.search.SortField
-
- org.apache.lucene.search.LongValuesSource.LongValuesSortField
-
- Enclosing class:
- LongValuesSource
private static class LongValuesSource.LongValuesSortField extends SortField
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.SortField
SortField.Type
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LongValuesSource
producer
-
Fields inherited from class org.apache.lucene.search.SortField
FIELD_DOC, FIELD_SCORE, missingValue, reverse, STRING_FIRST, STRING_LAST
-
-
Constructor Summary
Constructors Constructor Description LongValuesSortField(LongValuesSource producer, boolean reverse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.apache.lucene.search.SortField
equals, getBytesComparator, getComparator, getComparatorSource, getField, getMissingValue, getReverse, getType, hashCode, setBytesComparator
-
-
-
-
Field Detail
-
producer
final LongValuesSource producer
-
-
Constructor Detail
-
LongValuesSortField
public LongValuesSortField(LongValuesSource producer, boolean reverse)
-
-
Method Detail
-
setMissingValue
public void setMissingValue(java.lang.Object missingValue)
Description copied from class:SortField
Set the value to use for documents that don't have a value.- Overrides:
setMissingValue
in classSortField
-
needsScores
public boolean needsScores()
Description copied from class:SortField
Whether the relevance score is needed to sort documents.- Overrides:
needsScores
in classSortField
-
rewrite
public SortField rewrite(IndexSearcher searcher) throws java.io.IOException
Description copied from class:SortField
Rewrites this SortField, returning a new SortField if a change is made. Subclasses should override this define their rewriting behavior when this SortField is of typeSortField.Type.REWRITEABLE
-
-