public abstract static class IndexFieldDataCache.FieldBased extends Object implements IndexFieldDataCache, org.apache.lucene.index.AtomicReader.CoreClosedListener, com.google.common.cache.RemovalListener<org.elasticsearch.index.fielddata.IndexFieldDataCache.FieldBased.Key,org.apache.lucene.util.Accountable>, org.apache.lucene.index.IndexReader.ReaderClosedListener
IndexFieldDataCache.FieldBased, IndexFieldDataCache.Listener, IndexFieldDataCache.None, IndexFieldDataCache.Resident, IndexFieldDataCache.Soft
Modifier | Constructor and Description |
---|---|
protected |
FieldBased(ESLogger logger,
IndexService indexService,
FieldMapper.Names fieldNames,
FieldDataType fieldDataType,
com.google.common.cache.CacheBuilder cache,
IndicesFieldDataCacheListener indicesFieldDataCacheListener) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all the field data stored cached in on this index.
|
void |
clear(Object coreCacheKey) |
void |
clear(String fieldName)
Clears all the field data stored cached in on this index for the specified field name.
|
<FD extends AtomicFieldData,IFD extends IndexFieldData<FD>> |
load(org.apache.lucene.index.AtomicReaderContext context,
IFD indexFieldData) |
<FD extends AtomicFieldData,IFD extends IndexFieldData.Global<FD>> |
load(org.apache.lucene.index.IndexReader indexReader,
IFD indexFieldData) |
void |
onClose(org.apache.lucene.index.IndexReader reader) |
void |
onClose(Object coreCacheKey) |
void |
onRemoval(com.google.common.cache.RemovalNotification<org.elasticsearch.index.fielddata.IndexFieldDataCache.FieldBased.Key,org.apache.lucene.util.Accountable> notification) |
protected FieldBased(ESLogger logger, IndexService indexService, FieldMapper.Names fieldNames, FieldDataType fieldDataType, com.google.common.cache.CacheBuilder cache, IndicesFieldDataCacheListener indicesFieldDataCacheListener)
public void onRemoval(com.google.common.cache.RemovalNotification<org.elasticsearch.index.fielddata.IndexFieldDataCache.FieldBased.Key,org.apache.lucene.util.Accountable> notification)
onRemoval
in interface com.google.common.cache.RemovalListener<org.elasticsearch.index.fielddata.IndexFieldDataCache.FieldBased.Key,org.apache.lucene.util.Accountable>
public <FD extends AtomicFieldData,IFD extends IndexFieldData<FD>> FD load(org.apache.lucene.index.AtomicReaderContext context, IFD indexFieldData) throws Exception
load
in interface IndexFieldDataCache
Exception
public <FD extends AtomicFieldData,IFD extends IndexFieldData.Global<FD>> IFD load(org.apache.lucene.index.IndexReader indexReader, IFD indexFieldData) throws Exception
load
in interface IndexFieldDataCache
Exception
public void clear()
IndexFieldDataCache
clear
in interface IndexFieldDataCache
public void clear(String fieldName)
IndexFieldDataCache
clear
in interface IndexFieldDataCache
public void clear(Object coreCacheKey)
clear
in interface IndexFieldDataCache
public void onClose(Object coreCacheKey)
onClose
in interface org.apache.lucene.index.AtomicReader.CoreClosedListener
public void onClose(org.apache.lucene.index.IndexReader reader)
onClose
in interface org.apache.lucene.index.IndexReader.ReaderClosedListener
Copyright © 2009–2015. All rights reserved.