public class IndicesFieldDataCache extends AbstractComponent implements com.google.common.cache.RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
Modifier and Type | Class and Description |
---|---|
class |
IndicesFieldDataCache.FieldDataCacheCleaner
FieldDataCacheCleaner is a scheduled Runnable used to clean a Guava cache
periodically.
|
static class |
IndicesFieldDataCache.FieldDataWeigher |
static class |
IndicesFieldDataCache.Key |
Modifier and Type | Field and Description |
---|---|
static String |
FIELDDATA_CACHE_CONCURRENCY_LEVEL |
static String |
FIELDDATA_CLEAN_INTERVAL_SETTING |
static String |
INDICES_FIELDDATA_CACHE_SIZE_KEY |
deprecationLogger, logger, settings
Constructor and Description |
---|
IndicesFieldDataCache(Settings settings,
IndicesFieldDataCacheListener indicesFieldDataCacheListener,
ThreadPool threadPool) |
Modifier and Type | Method and Description |
---|---|
IndexFieldDataCache |
buildIndexFieldDataCache(IndexFieldDataCache.Listener listener,
Index index,
MappedFieldType.Names fieldNames,
FieldDataType fieldDataType) |
void |
close() |
com.google.common.cache.Cache<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> |
getCache() |
void |
onRemoval(com.google.common.cache.RemovalNotification<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> notification) |
logDeprecatedSetting, logRemovedSetting, nodeName
public static final String FIELDDATA_CLEAN_INTERVAL_SETTING
public static final String FIELDDATA_CACHE_CONCURRENCY_LEVEL
public static final String INDICES_FIELDDATA_CACHE_SIZE_KEY
@Inject public IndicesFieldDataCache(Settings settings, IndicesFieldDataCacheListener indicesFieldDataCacheListener, ThreadPool threadPool)
public void close()
public IndexFieldDataCache buildIndexFieldDataCache(IndexFieldDataCache.Listener listener, Index index, MappedFieldType.Names fieldNames, FieldDataType fieldDataType)
public com.google.common.cache.Cache<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> getCache()
public void onRemoval(com.google.common.cache.RemovalNotification<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable> notification)
onRemoval
in interface com.google.common.cache.RemovalListener<IndicesFieldDataCache.Key,org.apache.lucene.util.Accountable>
Copyright © 2009–2017. All rights reserved.