org.apache.solr.search
Class MissingStringLastComparatorSource
java.lang.Object
org.apache.lucene.search.FieldComparatorSource
org.apache.solr.search.MissingStringLastComparatorSource
public class MissingStringLastComparatorSource
- extends FieldComparatorSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MissingStringLastComparatorSource
public MissingStringLastComparatorSource()
MissingStringLastComparatorSource
public MissingStringLastComparatorSource(BytesRef missingValueProxy)
- Creates a
FieldComparatorSource
that sorts null last in a normal ascending sort.
missingValueProxy as the value to return from FieldComparator.value()
- Parameters:
missingValueProxy
- The value returned when sortValue() is called for a document missing the sort field.
This value is *not* normally used for sorting.
newComparator
public FieldComparator newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed)
throws IOException
- Specified by:
newComparator
in class FieldComparatorSource
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.