java.lang.Object | ||
↳ | org.apache.lucene.search.DocIdSet | |
↳ | org.apache.lucene.search.FilteredDocIdSet |
Abstract decorator class for a DocIdSet implementation that provides on-demand filtering/validation mechanism on a given DocIdSet.
Technically, this same functionality could be achieved with ChainedFilter (under contrib/misc), however the benefit of this class is it never materializes the full bitset for the filter. Instead, thematch(int)
method is invoked on-demand, per docID visited during
searching. If you know few docIDs will be visited, and
the logic behind match(int)
is relatively costly,
this may be a better way to filter than ChainedFilter.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.DocIdSet
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This DocIdSet implementation is cacheable if the inner set is cacheable.
| |||||||||||
Implementation of the contract to build a DocIdSetIterator.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Validation method to determine whether a docid should be in the result set.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.DocIdSet
| |||||||||||
From class
java.lang.Object
|
This DocIdSet implementation is cacheable if the inner set is cacheable.
Implementation of the contract to build a DocIdSetIterator.
IOException |
---|
Validation method to determine whether a docid should be in the result set.
docid | docid to be tested |
---|
IOException |
---|