public class MissingStringLastComparatorSource
extends org.apache.lucene.search.FieldComparatorSource
| Constructor and Description |
|---|
MissingStringLastComparatorSource() |
MissingStringLastComparatorSource(org.apache.lucene.util.BytesRef missingValueProxy)
Creates a
FieldComparatorSource that sorts null last in a normal ascending sort. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.FieldComparator |
newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed) |
public MissingStringLastComparatorSource()
public MissingStringLastComparatorSource(org.apache.lucene.util.BytesRef missingValueProxy)
FieldComparatorSource that sorts null last in a normal ascending sort.
missingValueProxy as the value to return from FieldComparator.value()missingValueProxy - The value returned when sortValue() is called for a document missing the sort field.
This value is *not* normally used for sorting.public org.apache.lucene.search.FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException
newComparator in class org.apache.lucene.search.FieldComparatorSourceIOExceptionCopyright © 2013. All Rights Reserved.