Package org.apache.lucene.search
Class BitsFilteredDocIdSet
java.lang.Object
org.apache.lucene.search.DocIdSet
org.apache.lucene.search.FilteredDocIdSet
org.apache.lucene.search.BitsFilteredDocIdSet
This implementation supplies a filtered DocIdSet, that excludes all
docids which are not in a Bits instance. This is especially useful in
Filter to apply the acceptDocs
passed to getDocIdSet() before returning the final DocIdSet.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.search.FilteredDocIdSet
bits, isCacheable, iterator
-
Constructor Details
-
BitsFilteredDocIdSet
Constructor.- Parameters:
innerSet- Underlying DocIdSetacceptDocs- Allowed docs, all docids not in this set will not be returned by this DocIdSet
-
-
Method Details
-
wrap
Convenience wrapper method: IfacceptDocs == nullit returns the original set without wrapping.- Parameters:
set- Underlying DocIdSet. Ifnull, this method returnsnullacceptDocs- Allowed docs, all docids not in this set will not be returned by this DocIdSet. Ifnull, this method returns the original set without wrapping.
-