Class IndexHistogramFieldData
java.lang.Object
org.elasticsearch.index.fielddata.IndexHistogramFieldData
- All Implemented Interfaces:
IndexFieldData<LeafHistogramFieldData>
,IndexComponent
public abstract class IndexHistogramFieldData extends java.lang.Object implements IndexFieldData<LeafHistogramFieldData>
Specialization of
IndexFieldData
for histograms.-
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
Fields Modifier and Type Field Description protected java.lang.String
fieldName
protected Index
index
protected ValuesSourceType
valuesSourceType
-
Constructor Summary
Constructors Constructor Description IndexHistogramFieldData(Index index, java.lang.String fieldName, ValuesSourceType valuesSourceType)
-
Method Summary
Modifier and Type Method Description void
clear()
Clears any resources associated with this field data.java.lang.String
getFieldName()
The field name.ValuesSourceType
getValuesSourceType()
The ValuesSourceType of the underlying data.Index
index()
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
load, loadDirect, newBucketedSort, sortField
-
Field Details
-
index
-
fieldName
protected final java.lang.String fieldName -
valuesSourceType
-
-
Constructor Details
-
IndexHistogramFieldData
public IndexHistogramFieldData(Index index, java.lang.String fieldName, ValuesSourceType valuesSourceType)
-
-
Method Details
-
getFieldName
public final java.lang.String getFieldName()Description copied from interface:IndexFieldData
The field name.- Specified by:
getFieldName
in interfaceIndexFieldData<LeafHistogramFieldData>
-
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<LeafHistogramFieldData>
-
clear
public final void clear()Description copied from interface:IndexFieldData
Clears any resources associated with this field data.- Specified by:
clear
in interfaceIndexFieldData<LeafHistogramFieldData>
-
index
- Specified by:
index
in interfaceIndexComponent
-