public class ShardQueryCache extends AbstractIndexShardComponent implements com.google.common.cache.RemovalListener<IndicesQueryCache.Key,IndicesQueryCache.Value>
componentSettings, indexSettings, logger, shardId
Constructor and Description |
---|
ShardQueryCache(ShardId shardId,
Settings indexSettings) |
Modifier and Type | Method and Description |
---|---|
void |
onCached(IndicesQueryCache.Key key,
IndicesQueryCache.Value value) |
void |
onHit() |
void |
onMiss() |
void |
onRemoval(com.google.common.cache.RemovalNotification<IndicesQueryCache.Key,IndicesQueryCache.Value> removalNotification) |
QueryCacheStats |
stats() |
indexSettings, nodeName, shardId
@Inject public ShardQueryCache(ShardId shardId, @IndexSettings Settings indexSettings)
public QueryCacheStats stats()
public void onHit()
public void onMiss()
public void onCached(IndicesQueryCache.Key key, IndicesQueryCache.Value value)
public void onRemoval(com.google.common.cache.RemovalNotification<IndicesQueryCache.Key,IndicesQueryCache.Value> removalNotification)
onRemoval
in interface com.google.common.cache.RemovalListener<IndicesQueryCache.Key,IndicesQueryCache.Value>
Copyright © 2009–2015. All rights reserved.