org.apache.solr.search
Class MissingStringLastComparatorSource

java.lang.Object
  extended by org.apache.lucene.search.FieldComparatorSource
      extended by org.apache.solr.search.MissingStringLastComparatorSource

public class MissingStringLastComparatorSource
extends FieldComparatorSource


Constructor Summary
MissingStringLastComparatorSource()
           
MissingStringLastComparatorSource(BytesRef missingValueProxy)
          Creates a FieldComparatorSource that sorts null last in a normal ascending sort.
 
Method Summary
 FieldComparator newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.