public class ShardFilterCache extends AbstractIndexShardComponent implements com.google.common.cache.RemovalListener<WeightedFilterCache.FilterCacheKey,org.apache.lucene.search.DocIdSet>
componentSettings, indexSettings, logger, shardId
Constructor and Description |
---|
ShardFilterCache(ShardId shardId,
Settings indexSettings) |
Modifier and Type | Method and Description |
---|---|
void |
onCached(long sizeInBytes) |
void |
onRemoval(com.google.common.cache.RemovalNotification<WeightedFilterCache.FilterCacheKey,org.apache.lucene.search.DocIdSet> removalNotification) |
FilterCacheStats |
stats() |
indexSettings, nodeName, shardId
@Inject public ShardFilterCache(ShardId shardId, @IndexSettings Settings indexSettings)
public FilterCacheStats stats()
public void onCached(long sizeInBytes)
public void onRemoval(com.google.common.cache.RemovalNotification<WeightedFilterCache.FilterCacheKey,org.apache.lucene.search.DocIdSet> removalNotification)
onRemoval
in interface com.google.common.cache.RemovalListener<WeightedFilterCache.FilterCacheKey,org.apache.lucene.search.DocIdSet>
Copyright © 2009–2015. All rights reserved.