Package org.apache.lucene.search
Class FieldComparatorSource
- java.lang.Object
-
- org.apache.lucene.search.FieldComparatorSource
-
public abstract class FieldComparatorSource extends Object
Provides aFieldComparator
for custom field sorting.
-
-
Constructor Summary
Constructors Constructor Description FieldComparatorSource()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract FieldComparator<?>
newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
Creates a comparator for the field in the given index.
-
-
-
Method Detail
-
newComparator
public abstract FieldComparator<?> newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException
Creates a comparator for the field in the given index.- Parameters:
fieldname
- Name of the field to create comparator for.- Returns:
- FieldComparator.
- Throws:
IOException
- If an error occurs reading the index.
-
-