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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndicesFieldDataCache(Settings settings, IndexFieldDataCache.Listener indicesFieldDataCacheListener) -
Method Summary
Modifier and TypeMethodDescriptionbuildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, String fieldName)voidclose()Cache<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>getCache()voidonRemoval(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein 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:
onRemovalin interfaceRemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
-