Module org.elasticsearch.server
Class LatLonPointIndexFieldData
java.lang.Object
org.elasticsearch.index.fielddata.plain.LatLonPointIndexFieldData
- All Implemented Interfaces:
IndexFieldData<LeafPointFieldData<MultiGeoPointValues>>
,IndexGeoPointFieldData
,IndexPointFieldData<MultiGeoPointValues>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final ToScriptFieldFactory<MultiGeoPointValues>
protected final ValuesSourceType
-
Constructor Summary
ConstructorDescriptionLatLonPointIndexFieldData
(String fieldName, ValuesSourceType valuesSourceType, ToScriptFieldFactory<MultiGeoPointValues> toScriptFieldFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The field name.The ValuesSourceType of the underlying data.load
(org.apache.lucene.index.LeafReaderContext context) Loads the atomic field data for the reader, possibly cached.loadDirect
(org.apache.lucene.index.LeafReaderContext context) Loads directly the atomic field data for the reader, ignoring any caching involved.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.SortField
sortField
(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Returns theSortField
to use for sorting.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
getFieldName, getValuesSourceType, newBucketedSort, sortField
-
Field Details
-
fieldName
-
valuesSourceType
-
toScriptFieldFactory
-
-
Constructor Details
-
LatLonPointIndexFieldData
public LatLonPointIndexFieldData(String fieldName, ValuesSourceType valuesSourceType, ToScriptFieldFactory<MultiGeoPointValues> toScriptFieldFactory)
-
-
Method Details
-
load
public LeafPointFieldData<MultiGeoPointValues> load(org.apache.lucene.index.LeafReaderContext context) Description copied from interface:IndexFieldData
Loads the atomic field data for the reader, possibly cached.- Specified by:
load
in interfaceIndexFieldData<LeafPointFieldData<MultiGeoPointValues>>
-
loadDirect
public LeafPointFieldData<MultiGeoPointValues> loadDirect(org.apache.lucene.index.LeafReaderContext context) throws Exception Description copied from interface:IndexFieldData
Loads directly the atomic field data for the reader, ignoring any caching involved.- Specified by:
loadDirect
in interfaceIndexFieldData<LeafPointFieldData<MultiGeoPointValues>>
- Throws:
Exception
-
getFieldName
Description copied from interface:IndexFieldData
The field name.- Specified by:
getFieldName
in interfaceIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
-
getValuesSourceType
Description copied from interface:IndexFieldData
The 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:
getValuesSourceType
in 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:IndexFieldData
Returns theSortField
to use for sorting.- Specified by:
sortField
in 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:IndexFieldData
Build a sort implementation specialized for aggregations.- Specified by:
newBucketedSort
in interfaceIndexFieldData<T extends MultiPointValues<? extends SpatialPoint>>
-