public abstract class FieldComparatorSource extends Object
FieldComparator
for custom field sorting.Constructor and Description |
---|
FieldComparatorSource() |
Modifier and Type | Method and Description |
---|---|
abstract FieldComparator<?> |
newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed)
Creates a comparator for the field in the given index.
|
public abstract FieldComparator<?> newComparator(String fieldname, int numHits, int sortPos, boolean reversed) throws IOException
fieldname
- Name of the field to create comparator for.IOException
- If an error occurs reading the index.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.