|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.FieldComparatorSource
public abstract class FieldComparatorSource
Provides a FieldComparator
for custom field sorting.
NOTE: This API is experimental and might change in
incompatible ways in the next release.
Constructor Summary | |
---|---|
FieldComparatorSource()
|
Method Summary | |
---|---|
abstract FieldComparator |
newComparator(java.lang.String fieldname,
int numHits,
int sortPos,
boolean reversed)
Creates a comparator for the field in the given index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldComparatorSource()
Method Detail |
---|
public abstract FieldComparator newComparator(java.lang.String fieldname, int numHits, int sortPos, boolean reversed) throws java.io.IOException
fieldname
- Name of the field to create comparator for.
java.io.IOException
- If an error occurs reading the index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |