java.io.Closeable
, java.lang.AutoCloseable
, RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
, Releasable
public class IndicesFieldDataCache extends AbstractComponent implements RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>, Releasable
Modifier and Type | Class | Description |
---|---|---|
static class |
IndicesFieldDataCache.FieldDataWeigher |
|
static class |
IndicesFieldDataCache.Key |
Modifier and Type | Field | Description |
---|---|---|
static Setting<ByteSizeValue> |
INDICES_FIELDDATA_CACHE_SIZE_KEY |
deprecationLogger, logger, settings
Constructor | Description |
---|---|
IndicesFieldDataCache(Settings settings,
IndexFieldDataCache.Listener indicesFieldDataCacheListener) |
Modifier and Type | Method | Description |
---|---|---|
IndexFieldDataCache |
buildIndexFieldDataCache(IndexFieldDataCache.Listener listener,
Index index,
java.lang.String fieldName) |
|
void |
close() |
|
Cache<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> |
getCache() |
|
void |
onRemoval(RemovalNotification<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> notification) |
logDeprecatedSetting, logRemovedSetting, nodeName
public static final Setting<ByteSizeValue> INDICES_FIELDDATA_CACHE_SIZE_KEY
public IndicesFieldDataCache(Settings settings, IndexFieldDataCache.Listener indicesFieldDataCacheListener)
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in interface Releasable
public IndexFieldDataCache buildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, java.lang.String fieldName)
public Cache<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> getCache()
public void onRemoval(RemovalNotification<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> notification)
onRemoval
in interface RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>