QueryCachingPolicy
instead@Deprecated public interface FilterCachingPolicy
UsageTrackingFilterCachingPolicy
,
LRUFilterCache
Modifier and Type | Interface and Description |
---|---|
static class |
FilterCachingPolicy.CacheOnLargeSegments
Deprecated.
A simple policy that only caches on the largest segments of an index.
|
Modifier and Type | Field and Description |
---|---|
static FilterCachingPolicy |
ALWAYS_CACHE
Deprecated.
A simple policy that caches all the provided filters on all segments.
|
Modifier and Type | Method and Description |
---|---|
void |
onUse(Filter filter)
Deprecated.
Callback that is called every time that a cached filter is used.
|
boolean |
shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set)
Deprecated.
Whether the given
DocIdSet should be cached on a given segment. |
static final FilterCachingPolicy ALWAYS_CACHE
void onUse(Filter filter)
boolean shouldCache(Filter filter, LeafReaderContext context, DocIdSet set) throws IOException
DocIdSet
should be cached on a given segment.
This method will be called on each leaf context to know if the filter
should be cached on this particular leaf. The filter cache will first
attempt to load a DocIdSet
from the cache. If it is not cached
yet and this method returns true then a cache entry will be
generated. Otherwise an uncached set will be returned.IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.