Class AbstractIndexFieldData<FD extends AtomicFieldData>
- java.lang.Object
-
- org.elasticsearch.index.AbstractIndexComponent
-
- org.elasticsearch.index.fielddata.plain.AbstractIndexFieldData<FD>
-
- All Implemented Interfaces:
IndexFieldData<FD>,IndexComponent
- Direct Known Subclasses:
AbstractIndexOrdinalsFieldData
public abstract class AbstractIndexFieldData<FD extends AtomicFieldData> extends AbstractIndexComponent implements IndexFieldData<FD>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAbstractIndexFieldData.PerValueEstimatorAPerValueEstimatoris a sub-class that can be used to estimate the memory overhead for loading the data.-
Nested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Builder, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexFieldDataCachecache-
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
-
Constructor Summary
Constructors Constructor Description AbstractIndexFieldData(IndexSettings indexSettings, String fieldName, IndexFieldDataCache cache)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()Clears any resources associated with this field data.protected abstract FDempty(int maxDoc)StringgetFieldName()The field name.FDload(LeafReaderContext context)Loads the atomic field data for the reader, possibly cached.-
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, 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.IndexComponent
index
-
Methods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
loadDirect, sortField
-
-
-
-
Field Detail
-
cache
protected final IndexFieldDataCache cache
-
-
Constructor Detail
-
AbstractIndexFieldData
public AbstractIndexFieldData(IndexSettings indexSettings, String fieldName, IndexFieldDataCache cache)
-
-
Method Detail
-
getFieldName
public String getFieldName()
Description copied from interface:IndexFieldDataThe field name.- Specified by:
getFieldNamein interfaceIndexFieldData<FD extends AtomicFieldData>
-
clear
public void clear()
Description copied from interface:IndexFieldDataClears any resources associated with this field data.- Specified by:
clearin interfaceIndexFieldData<FD extends AtomicFieldData>
-
load
public FD load(LeafReaderContext context)
Description copied from interface:IndexFieldDataLoads the atomic field data for the reader, possibly cached.- Specified by:
loadin interfaceIndexFieldData<FD extends AtomicFieldData>
-
empty
protected abstract FD empty(int maxDoc)
- Parameters:
maxDoc- of the current reader- Returns:
- an empty field data instances for field data lookups of empty segments (returning no values)
-
-