Module org.elasticsearch.server
Class SourceValueFetcherIndexFieldData<T>
java.lang.Object
org.elasticsearch.index.fielddata.SourceValueFetcherIndexFieldData<T>
- All Implemented Interfaces:
IndexFieldData<SourceValueFetcherIndexFieldData.SourceValueFetcherLeafFieldData<T>>
- Direct Known Subclasses:
SourceValueFetcherMultiGeoPointIndexFieldData,SourceValueFetcherSortedBinaryIndexFieldData,SourceValueFetcherSortedBooleanIndexFieldData,SourceValueFetcherSortedDoubleIndexFieldData,SourceValueFetcherSortedNumericIndexFieldData
public abstract class SourceValueFetcherIndexFieldData<T>
extends Object
implements IndexFieldData<SourceValueFetcherIndexFieldData.SourceValueFetcherLeafFieldData<T>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceMarker interface to indicate these doc values are generated on-the-fly from aValueFetcher.Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final SourceProviderprotected final ToScriptFieldFactory<T> protected final ValueFetcherprotected final ValuesSourceType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSourceValueFetcherIndexFieldData(String fieldName, ValuesSourceType valuesSourceType, ValueFetcher valueFetcher, SourceProvider sourceProvider, ToScriptFieldFactory<T> toScriptFieldFactory) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.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
loadDirect, sortField
-
Field Details
-
fieldName
-
valuesSourceType
-
valueFetcher
-
sourceProvider
-
toScriptFieldFactory
-
-
Constructor Details
-
SourceValueFetcherIndexFieldData
protected SourceValueFetcherIndexFieldData(String fieldName, ValuesSourceType valuesSourceType, ValueFetcher valueFetcher, SourceProvider sourceProvider, ToScriptFieldFactory<T> toScriptFieldFactory)
-
-
Method Details
-
getFieldName
Description copied from interface:IndexFieldDataThe field name.- Specified by:
getFieldNamein interfaceIndexFieldData<T>
-
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>
-
load
public SourceValueFetcherIndexFieldData.SourceValueFetcherLeafFieldData<T> load(org.apache.lucene.index.LeafReaderContext context) Description copied from interface:IndexFieldDataLoads the atomic field data for the reader, possibly cached.- Specified by:
loadin interfaceIndexFieldData<T>
-
sortField
public org.apache.lucene.search.SortField sortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Description copied from interface:IndexFieldDataReturns theSortFieldto use for sorting.- Specified by:
sortFieldin interfaceIndexFieldData<T>
-
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>
-