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 |
componentSettings, logger, settings
Constructor and Description |
---|
IndicesFieldDataCache(Settings settings,
IndicesFieldDataCacheListener indicesFieldDataCacheListener,
ThreadPool threadPool) |
Modifier and Type | Method and Description |
---|---|
IndexFieldDataCache |
buildIndexFieldDataCache(IndexService indexService,
Index index,
FieldMapper.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) |
nodeName
public static final String FIELDDATA_CLEAN_INTERVAL_SETTING
public static final String FIELDDATA_CACHE_CONCURRENCY_LEVEL
@Inject public IndicesFieldDataCache(Settings settings, IndicesFieldDataCacheListener indicesFieldDataCacheListener, ThreadPool threadPool)
public void close()
public IndexFieldDataCache buildIndexFieldDataCache(IndexService indexService, Index index, FieldMapper.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–2015. All rights reserved.