Method DocIdSetToCache
DocIdSetToCache(DocIdSet, AtomicReader)
Provide the DocIdSet to be cached, using the DocIdSet provided by the wrapped Filter.
This implementation returns the given DocIdSet,
if IsCacheable returns true
, else it calls
CacheImpl(DocIdSetIterator, AtomicReader)
Note: this method returns EMPTY_DOCIDSET if the given docIdSet
is null
or if GetIterator() return null
. The empty
instance is use as a placeholder in the cache instead of the null
value.
Declaration
protected virtual DocIdSet DocIdSetToCache(DocIdSet docIdSet, AtomicReader reader)
Parameters
Type | Name | Description |
---|---|---|
DocIdSet | docIdSet | |
AtomicReader | reader |
Returns
Type | Description |
---|---|
DocIdSet |