Module org.elasticsearch.server
Class IndicesFieldDataCache
java.lang.Object
org.elasticsearch.indices.fielddata.cache.IndicesFieldDataCache
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RemovalListener<IndicesFieldDataCache.Key,
,org.apache.lucene.util.Accountable> Releasable
public final class IndicesFieldDataCache
extends Object
implements RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>, Releasable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndicesFieldDataCache
(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
-
INDICES_FIELDDATA_CACHE_EXPIRE
-
-
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 interfaceReleasable
-
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>
-