public abstract class AbstractIndexFieldData<FD extends AtomicFieldData> extends AbstractIndexComponent implements IndexFieldData<FD>
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractIndexFieldData.PerValueEstimator
A
PerValueEstimator is a sub-class that can be used to estimate
the memory overhead for loading the data. |
IndexFieldData.Builder, IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource
Modifier and Type | Field and Description |
---|---|
protected IndexFieldDataCache |
cache |
protected FieldDataType |
fieldDataType |
deprecationLogger, index, indexSettings, logger
Constructor and Description |
---|
AbstractIndexFieldData(Index index,
Settings indexSettings,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType,
IndexFieldDataCache cache) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears any resources associated with this field data.
|
protected abstract FD |
empty(int maxDoc) |
FieldDataType |
getFieldDataType()
The field data type.
|
MappedFieldType.Names |
getFieldNames()
The field name.
|
FD |
load(org.apache.lucene.index.LeafReaderContext context)
Loads the atomic field data for the reader, possibly cached.
|
index, indexSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparatorSource, loadDirect
index
protected final FieldDataType fieldDataType
protected final IndexFieldDataCache cache
public AbstractIndexFieldData(Index index, Settings indexSettings, MappedFieldType.Names fieldNames, FieldDataType fieldDataType, IndexFieldDataCache cache)
public MappedFieldType.Names getFieldNames()
IndexFieldData
getFieldNames
in interface IndexFieldData<FD extends AtomicFieldData>
public FieldDataType getFieldDataType()
IndexFieldData
getFieldDataType
in interface IndexFieldData<FD extends AtomicFieldData>
public void clear()
IndexFieldData
clear
in interface IndexFieldData<FD extends AtomicFieldData>
public FD load(org.apache.lucene.index.LeafReaderContext context)
IndexFieldData
load
in interface IndexFieldData<FD extends AtomicFieldData>
protected abstract FD empty(int maxDoc)
maxDoc
- of the current readerCopyright © 2009–2017. All rights reserved.