public class IndicesQueryCache extends AbstractComponent implements org.apache.lucene.search.QueryCache, Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPRECATED_INDICES_CACHE_QUERY_SIZE
Deprecated.
|
static String |
INDICES_CACHE_QUERY_COUNT |
static String |
INDICES_CACHE_QUERY_SIZE |
deprecationLogger, logger, settings| Constructor and Description |
|---|
IndicesQueryCache(Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearIndex(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 String INDICES_CACHE_QUERY_SIZE
@Deprecated public static final String DEPRECATED_INDICES_CACHE_QUERY_SIZE
public static final String INDICES_CACHE_QUERY_COUNT
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(String index)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void onClose(ShardId shardId)
Copyright © 2009–2017. All rights reserved.