Class IndicesFieldDataCache
- java.lang.Object
-
- org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache
-
- All Implemented Interfaces:
Closeable,AutoCloseable,RemovalListener<IndicesFieldDataCache.Key,Accountable>,Releasable
public class IndicesFieldDataCache extends Object implements RemovalListener<IndicesFieldDataCache.Key,Accountable>, Releasable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndicesFieldDataCache.FieldDataWeigherstatic classIndicesFieldDataCache.Key
-
Field Summary
Fields Modifier and Type Field Description static Setting<ByteSizeValue>INDICES_FIELDDATA_CACHE_SIZE_KEY
-
Constructor Summary
Constructors Constructor Description IndicesFieldDataCache(Settings settings, IndexFieldDataCache.Listener indicesFieldDataCacheListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexFieldDataCachebuildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, String fieldName)voidclose()Cache<IndicesFieldDataCache.Key,Accountable>getCache()voidonRemoval(RemovalNotification<IndicesFieldDataCache.Key,Accountable> notification)
-
-
-
Field Detail
-
INDICES_FIELDDATA_CACHE_SIZE_KEY
public static final Setting<ByteSizeValue> INDICES_FIELDDATA_CACHE_SIZE_KEY
-
-
Constructor Detail
-
IndicesFieldDataCache
public IndicesFieldDataCache(Settings settings, IndexFieldDataCache.Listener indicesFieldDataCacheListener)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
buildIndexFieldDataCache
public IndexFieldDataCache buildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, String fieldName)
-
getCache
public Cache<IndicesFieldDataCache.Key,Accountable> getCache()
-
onRemoval
public void onRemoval(RemovalNotification<IndicesFieldDataCache.Key,Accountable> notification)
- Specified by:
onRemovalin interfaceRemovalListener<IndicesFieldDataCache.Key,Accountable>
-
-