Class LongValuesComparatorSource
java.lang.Object
org.apache.lucene.search.FieldComparatorSource
org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource
Comparator source for long 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
ConstructorsConstructorDescriptionLongValuesComparatorSource(IndexNumericFieldData indexFieldData, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, Function<org.apache.lucene.index.SortedNumericDocValues,org.apache.lucene.index.SortedNumericDocValues> converter, IndexNumericFieldData.NumericType targetNumericType)LongValuesComparatorSource(IndexNumericFieldData indexFieldData, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, IndexNumericFieldData.NumericType targetNumericType) -
Method Summary
Modifier and TypeMethodDescriptionmissingObject(Object missingValue, boolean reversed)Return the missing object value according to the reduced type of the comparator.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.TypeMethods inherited from class org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource
missingValue, nested, sortMissingFirst, sortMissingLast, sortMode
-
Constructor Details
-
LongValuesComparatorSource
public LongValuesComparatorSource(IndexNumericFieldData indexFieldData, @Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, IndexNumericFieldData.NumericType targetNumericType) -
LongValuesComparatorSource
public LongValuesComparatorSource(IndexNumericFieldData indexFieldData, @Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, Function<org.apache.lucene.index.SortedNumericDocValues,org.apache.lucene.index.SortedNumericDocValues> converter, IndexNumericFieldData.NumericType targetNumericType)
-
-
Method Details
-
reducedType
public org.apache.lucene.search.SortField.Type reducedType()- Specified by:
reducedTypein classIndexFieldData.XFieldComparatorSource
-
newComparator
public org.apache.lucene.search.FieldComparator<?> newComparator(String fieldname, int numHits, int sortPos, boolean reversed)- Specified by:
newComparatorin 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.XFieldComparatorSourceCreate a BucketedSort which is useful for sorting inside of aggregations.- Specified by:
newBucketedSortin classIndexFieldData.XFieldComparatorSource
-
missingObject
Description copied from class:IndexFieldData.XFieldComparatorSourceReturn the missing object value according to the reduced type of the comparator.- Overrides:
missingObjectin classIndexFieldData.XFieldComparatorSource
-