public class IndicesQueryCache extends AbstractComponent implements org.apache.lucene.search.QueryCache, java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
static Setting<java.lang.Integer> |
INDICES_CACHE_QUERY_COUNT_SETTING |
static Setting<ByteSizeValue> |
INDICES_CACHE_QUERY_SIZE_SETTING |
static Setting<java.lang.Boolean> |
INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING |
deprecationLogger, logger, settings| Constructor and Description |
|---|
IndicesQueryCache(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearIndex(java.lang.String index)
Clear all entries that belong to the given index.
|
void |
close() |
org.apache.lucene.search.Weight |
doCache(org.apache.lucene.search.Weight weight,
org.apache.lucene.search.QueryCachingPolicy policy) |
QueryCacheStats |
getStats(ShardId shard)
Get usage statistics for the given shard.
|
void |
onClose(ShardId shardId) |
logDeprecatedSetting, logRemovedSetting, nodeNamepublic static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE_SETTING
public static final Setting<java.lang.Integer> INDICES_CACHE_QUERY_COUNT_SETTING
public static final Setting<java.lang.Boolean> INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING
public IndicesQueryCache(Settings settings)
public QueryCacheStats getStats(ShardId shard)
public org.apache.lucene.search.Weight doCache(org.apache.lucene.search.Weight weight,
org.apache.lucene.search.QueryCachingPolicy policy)
doCache in interface org.apache.lucene.search.QueryCachepublic void clearIndex(java.lang.String index)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void onClose(ShardId shardId)