public abstract class FieldComparatorSource
extends java.lang.Object
implements java.io.Serializable
FieldComparator
for custom field sorting.Constructor and Description |
---|
FieldComparatorSource() |
Modifier and Type | Method and Description |
---|---|
abstract FieldComparator<?> |
newComparator(java.lang.String fieldname,
int numHits,
int sortPos,
boolean reversed)
Creates a comparator for the field in the given index.
|
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.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.