Class DoubleValuesComparatorSource
java.lang.Object
org.apache.lucene.search.FieldComparatorSource
org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
org.elasticsearch.index.fielddata.fieldcomparator.DoubleValuesComparatorSource
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
ConstructorDescriptionDoubleValuesComparatorSource(IndexNumericFieldData indexFieldData, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested)
-
Method Summary
Modifier and TypeMethodDescriptionprotected SortedNumericDoubleValues
getValues(org.apache.lucene.index.LeafReaderContext context)
newBucketedSort(BigArrays bigArrays, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra)
Create a BucketedSort which is useful for sorting inside of aggregations.org.apache.lucene.search.FieldComparator<?>
newComparator(String fieldname, int numHits, int sortPos, boolean reversed)
org.apache.lucene.search.SortField.Type
protected void
setScorer(org.apache.lucene.search.Scorable scorer)
Methods inherited from class org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
missingObject, missingValue, nested, sortMissingFirst, sortMissingLast, sortMode
-
Constructor Details
-
DoubleValuesComparatorSource
public DoubleValuesComparatorSource(IndexNumericFieldData indexFieldData, @Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested)
-
-
Method Details
-
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 IOException- Throws:
IOException
-
setScorer
protected void setScorer(org.apache.lucene.search.Scorable scorer) -
newComparator
public org.apache.lucene.search.FieldComparator<?> newComparator(String fieldname, int numHits, int sortPos, boolean reversed)- Specified by:
newComparator
in classorg.apache.lucene.search.FieldComparatorSource
-
newBucketedSort
public BucketedSort newBucketedSort(BigArrays bigArrays, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra)Description copied from class:IndexFieldData.XFieldComparatorSource
Create a BucketedSort which is useful for sorting inside of aggregations.- Specified by:
newBucketedSort
in classIndexFieldData.XFieldComparatorSource
-