IndexFieldData<FD>
, IndexComponent
AbstractIndexOrdinalsFieldData
public abstract class AbstractIndexFieldData<FD extends AtomicFieldData> extends AbstractIndexComponent implements IndexFieldData<FD>
Modifier and Type | Class | 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 | Description |
---|---|---|
protected IndexFieldDataCache |
cache |
deprecationLogger, indexSettings, logger
Constructor | Description |
---|---|
AbstractIndexFieldData(IndexSettings indexSettings,
java.lang.String fieldName,
IndexFieldDataCache cache) |
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Clears any resources associated with this field data.
|
protected abstract FD |
empty(int maxDoc) |
|
java.lang.String |
getFieldName() |
The field name.
|
FD |
load(org.apache.lucene.index.LeafReaderContext context) |
Loads the atomic field data for the reader, possibly cached.
|
getIndexSettings, index
index
loadDirect, sortField
protected final IndexFieldDataCache cache
public AbstractIndexFieldData(IndexSettings indexSettings, java.lang.String fieldName, IndexFieldDataCache cache)
public java.lang.String getFieldName()
IndexFieldData
getFieldName
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 reader