org.elasticsearch.index.cache.filter.weighted
Class WeightedFilterCache
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.cache.filter.weighted.WeightedFilterCache
- All Implemented Interfaces:
- com.google.common.cache.RemovalListener<WeightedFilterCache.FilterCacheKey,DocSet>, org.apache.lucene.index.SegmentReader.CoreClosedListener, CloseableComponent, FilterCache, IndexComponent
public class WeightedFilterCache
- extends AbstractIndexComponent
- implements FilterCache, org.apache.lucene.index.SegmentReader.CoreClosedListener, com.google.common.cache.RemovalListener<WeightedFilterCache.FilterCacheKey,DocSet>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeightedFilterCache
@Inject
public WeightedFilterCache(Index index,
@IndexSettings
Settings indexSettings,
IndicesFilterCache indicesFilterCache)
type
public String type()
- Specified by:
type
in interface FilterCache
close
public void close()
throws ElasticSearchException
- Specified by:
close
in interface CloseableComponent
- Throws:
ElasticSearchException
clear
public void clear(String reason)
- Specified by:
clear
in interface FilterCache
onClose
public void onClose(org.apache.lucene.index.SegmentReader owner)
- Specified by:
onClose
in interface org.apache.lucene.index.SegmentReader.CoreClosedListener
clear
public void clear(org.apache.lucene.index.IndexReader reader)
- Specified by:
clear
in interface FilterCache
entriesStats
public FilterCache.EntriesStats entriesStats()
- Specified by:
entriesStats
in interface FilterCache
evictions
public long evictions()
- Specified by:
evictions
in interface FilterCache
cache
public org.apache.lucene.search.Filter cache(org.apache.lucene.search.Filter filterToCache)
- Specified by:
cache
in interface FilterCache
isCached
public boolean isCached(org.apache.lucene.search.Filter filter)
- Specified by:
isCached
in interface FilterCache
onRemoval
public void onRemoval(com.google.common.cache.RemovalNotification<WeightedFilterCache.FilterCacheKey,DocSet> removalNotification)
- Specified by:
onRemoval
in interface com.google.common.cache.RemovalListener<WeightedFilterCache.FilterCacheKey,DocSet>
Copyright © 2009-2012. All Rights Reserved.