Module org.elasticsearch.server
Class AbstractPointIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
java.lang.Object
org.elasticsearch.index.fielddata.plain.AbstractPointIndexFieldData<T>
- All Implemented Interfaces:
IndexFieldData<LeafPointFieldData<T>>,IndexPointFieldData<T>
- Direct Known Subclasses:
LatLonPointIndexFieldData
public abstract class AbstractPointIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
extends Object
implements IndexPointFieldData<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Builder, IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final ToScriptFieldFactory<T> protected final ValuesSourceType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPointIndexFieldData(String fieldName, ValuesSourceType valuesSourceType, ToScriptFieldFactory<T> toScriptFieldFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe field name.The ValuesSourceType of the underlying data.newBucketedSort(BigArrays bigArrays, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra) Build a sort implementation specialized for aggregations.org.apache.lucene.search.SortFieldsortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Returns theSortFieldto use for sorting.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
load, loadDirect
-
Field Details
-
fieldName
-
valuesSourceType
-
toScriptFieldFactory
protected final ToScriptFieldFactory<T extends MultiPointValues<? extends SpatialPoint>> toScriptFieldFactory
-
-
Constructor Details
-
AbstractPointIndexFieldData
protected AbstractPointIndexFieldData(String fieldName, ValuesSourceType valuesSourceType, ToScriptFieldFactory<T> toScriptFieldFactory)
-
-
Method Details
-
getFieldName
Description copied from interface:IndexFieldDataThe field name.- Specified by:
getFieldNamein interfaceIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
-
getValuesSourceType
Description copied from interface:IndexFieldDataThe ValuesSourceType of the underlying data. It's possible for fields that use the same IndexFieldData implementation to have different ValuesSourceTypes, such as in the case of Longs and Dates.- Specified by:
getValuesSourceTypein interfaceIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
-
sortField
public org.apache.lucene.search.SortField sortField(@Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Description copied from interface:IndexFieldDataReturns theSortFieldto use for sorting.- Specified by:
sortFieldin interfaceIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
-
newBucketedSort
public BucketedSort newBucketedSort(BigArrays bigArrays, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra) Description copied from interface:IndexFieldDataBuild a sort implementation specialized for aggregations.- Specified by:
newBucketedSortin interfaceIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
-