public abstract class FieldComparatorSource
extends java.lang.Object
implements java.io.Serializable
FieldComparator for custom field sorting.
NOTE: This API is experimental and might change in
incompatible ways in the next release.| 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-2016 Apache Software Foundation. All Rights Reserved.