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:
- com.google.common.cache.RemovalListener<String,FieldData>, org.apache.lucene.index.SegmentReader.CoreClosedListener, CloseableComponent, FieldDataCache, IndexComponent
public class ResidentFieldDataCache
- extends AbstractConcurrentMapFieldDataCache
- implements com.google.common.cache.RemovalListener<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 com.google.common.cache.Cache<String,FieldData> buildFieldDataMap()
- Specified by:
buildFieldDataMap
in class AbstractConcurrentMapFieldDataCache
type
public String type()
- Specified by:
type
in interface FieldDataCache
evictions
public long evictions()
- Specified by:
evictions
in interface FieldDataCache
onRemoval
public void onRemoval(com.google.common.cache.RemovalNotification<String,FieldData> removalNotification)
- Specified by:
onRemoval
in interface com.google.common.cache.RemovalListener<String,FieldData>
Copyright © 2009-2012. All Rights Reserved.