Class DoubleValuesComparatorSource
- java.lang.Object
-
- org.apache.lucene.search.FieldComparatorSource
-
- org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
-
- org.elasticsearch.index.fielddata.fieldcomparator.DoubleValuesComparatorSource
-
public class DoubleValuesComparatorSource extends IndexFieldData.XFieldComparatorSource
Comparator source for double values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
IndexFieldData.XFieldComparatorSource.Nested
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
missingValue, nested, sortMode
-
-
Constructor Summary
Constructors Constructor Description DoubleValuesComparatorSource(IndexNumericFieldData indexFieldData, java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SortedNumericDoubleValues
getValues(org.apache.lucene.index.LeafReaderContext context)
org.apache.lucene.search.FieldComparator<?>
newComparator(java.lang.String fieldname, int numHits, int sortPos, boolean reversed)
org.apache.lucene.search.SortField.Type
reducedType()
protected void
setScorer(org.apache.lucene.search.Scorer scorer)
-
Methods inherited from class org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
missingObject, missingValue, nested, sortMissingFirst, sortMissingLast, sortMode
-
-
-
-
Constructor Detail
-
DoubleValuesComparatorSource
public DoubleValuesComparatorSource(IndexNumericFieldData indexFieldData, @Nullable java.lang.Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested)
-
-
Method Detail
-
reducedType
public org.apache.lucene.search.SortField.Type reducedType()
- Specified by:
reducedType
in classIndexFieldData.XFieldComparatorSource
-
getValues
protected SortedNumericDoubleValues getValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
- Throws:
java.io.IOException
-
setScorer
protected void setScorer(org.apache.lucene.search.Scorer scorer)
-
newComparator
public org.apache.lucene.search.FieldComparator<?> newComparator(java.lang.String fieldname, int numHits, int sortPos, boolean reversed)
- Specified by:
newComparator
in classorg.apache.lucene.search.FieldComparatorSource
-
-