org.apache.lucene.search
Interface SortComparatorSource
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- SortComparator
public interface SortComparatorSource extends java.io.SerializableExpert: returns a comparator for sorting ScoreDocs.Created: Apr 21, 2004 3:49:28 PM
- Since:
- 1.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ScoreDocComparatornewComparator(IndexReader reader, java.lang.String fieldname)Creates a comparator for the field in the given index.
-
-
-
Method Detail
-
newComparator
ScoreDocComparator newComparator(IndexReader reader, java.lang.String fieldname) throws java.io.IOException
Creates a comparator for the field in the given index.- Parameters:
reader- Index to create comparator for.fieldname- Name of the field to create comparator for.- Returns:
- Comparator of ScoreDoc objects.
- Throws:
java.io.IOException- If an error occurs reading the index.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG