Class IndicesFieldDataCache
java.lang.Object
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
,org.elasticsearch.core.Releasable
public class IndicesFieldDataCache
extends Object
implements RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>, org.elasticsearch.core.Releasable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionIndicesFieldDataCache(Settings settings, IndexFieldDataCache.Listener indicesFieldDataCacheListener)
-
Method Summary
Modifier and TypeMethodDescriptionbuildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, String fieldName)
void
close()
Cache<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
getCache()
void
onRemoval(RemovalNotification<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> notification)
-
Field Details
-
INDICES_FIELDDATA_CACHE_SIZE_KEY
-
-
Constructor Details
-
IndicesFieldDataCache
public IndicesFieldDataCache(Settings settings, IndexFieldDataCache.Listener indicesFieldDataCacheListener)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.core.Releasable
-
buildIndexFieldDataCache
public IndexFieldDataCache buildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, String fieldName) -
getCache
-
onRemoval
public void onRemoval(RemovalNotification<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> notification)- Specified by:
onRemoval
in interfaceRemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
-