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 class
static class
static interface
Marker 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 String
protected final SourceProvider
protected final ToScriptFieldFactory<T>
protected final ValueFetcher
protected final ValuesSourceType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SourceValueFetcherIndexFieldData
(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.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
loadDirect
-
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:IndexFieldData
The field name.- Specified by:
getFieldName
in interfaceIndexFieldData<T>
-
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>
-
load
public SourceValueFetcherIndexFieldData.SourceValueFetcherLeafFieldData<T> 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<T>
-
sortField
public org.apache.lucene.search.SortField sortField(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>
-
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>
-