org.elasticsearch.index.cache.field.data.resident
Class ResidentFieldDataCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.field.data.support.AbstractConcurrentMapFieldDataCache
org.elasticsearch.index.cache.field.data.resident.ResidentFieldDataCache
- All Implemented Interfaces:
- org.apache.lucene.index.IndexReader.ReaderFinishedListener, org.elasticsearch.common.collect.MapEvictionListener<java.lang.String,FieldData>, CloseableComponent, FieldDataCache, IndexComponent
public class ResidentFieldDataCache
- extends AbstractConcurrentMapFieldDataCache
- implements org.elasticsearch.common.collect.MapEvictionListener<java.lang.String,FieldData>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResidentFieldDataCache
@Inject
public ResidentFieldDataCache(Index index,
@IndexSettings
Settings indexSettings,
IndexSettingsService indexSettingsService)
close
public void close()
throws ElasticSearchException
- Specified by:
close
in interface CloseableComponent
- Overrides:
close
in class AbstractConcurrentMapFieldDataCache
- Throws:
ElasticSearchException
buildFieldDataMap
protected java.util.concurrent.ConcurrentMap<java.lang.String,FieldData> buildFieldDataMap()
- Overrides:
buildFieldDataMap
in class AbstractConcurrentMapFieldDataCache
type
public java.lang.String type()
- Specified by:
type
in interface FieldDataCache
evictions
public long evictions()
- Specified by:
evictions
in interface FieldDataCache
onEviction
public void onEviction(@Nullable
java.lang.String s,
@Nullable
FieldData fieldData)
- Specified by:
onEviction
in interface org.elasticsearch.common.collect.MapEvictionListener<java.lang.String,FieldData>