class ValueSource.ValueSourceComparatorSource extends FieldComparatorSource
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
context |
Constructor and Description |
---|
ValueSourceComparatorSource(java.util.Map context) |
Modifier and Type | Method and Description |
---|---|
FieldComparator<java.lang.Double> |
newComparator(java.lang.String fieldname,
int numHits,
int sortPos,
boolean reversed)
Creates a comparator for the field in the given index.
|
public ValueSourceComparatorSource(java.util.Map context)
public FieldComparator<java.lang.Double> newComparator(java.lang.String fieldname, int numHits, int sortPos, boolean reversed)
FieldComparatorSource
newComparator
in class FieldComparatorSource
fieldname
- Name of the field to create comparator for.