public final class FixedBitSetCachingWrapperFilter extends CachingWrapperFilter
CachingWrapperFilter that caches sets using a FixedBitSet,
as required for joins.EMPTY_DOCIDSET| Constructor and Description |
|---|
FixedBitSetCachingWrapperFilter(Filter filter)
Sole constructor, see
CachingWrapperFilter.CachingWrapperFilter(Filter). |
| Modifier and Type | Method and Description |
|---|---|
protected DocIdSet |
docIdSetToCache(DocIdSet docIdSet,
AtomicReader reader)
Provide the DocIdSet to be cached, using the DocIdSet provided
by the wrapped Filter.
|
cacheImpl, equals, getDocIdSet, getFilter, hashCode, sizeInBytes, toStringpublic FixedBitSetCachingWrapperFilter(Filter filter)
CachingWrapperFilter.CachingWrapperFilter(Filter).protected DocIdSet docIdSetToCache(DocIdSet docIdSet, AtomicReader reader) throws IOException
CachingWrapperFilterThis implementation returns the given DocIdSet,
if DocIdSet.isCacheable() returns true, else it calls
CachingWrapperFilter.cacheImpl(DocIdSetIterator,AtomicReader)
Note: This method returns CachingWrapperFilter.EMPTY_DOCIDSET if the given docIdSet
is null or if DocIdSet.iterator() return null. The empty
instance is use as a placeholder in the cache instead of the null value.
docIdSetToCache in class CachingWrapperFilterIOExceptionCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.