public final class BitsFilteredDocIdSet extends FilteredDocIdSet
Filter
to apply the acceptDocs
passed to getDocIdSet()
before returning the final DocIdSet.Constructor and Description |
---|
BitsFilteredDocIdSet(DocIdSet innerSet,
Bits acceptDocs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
match(int docid)
Validation method to determine whether a docid should be in the result set.
|
static DocIdSet |
wrap(DocIdSet set,
Bits acceptDocs)
Convenience wrapper method: If
acceptDocs == null it returns the original set without wrapping. |
bits, getChildResources, getDelegate, iterator, ramBytesUsed
public static DocIdSet wrap(DocIdSet set, Bits acceptDocs)
acceptDocs == null
it returns the original set without wrapping.set
- Underlying DocIdSet. If null
, this method returns null
acceptDocs
- Allowed docs, all docids not in this set will not be returned by this DocIdSet.
If null
, this method returns the original set without wrapping.protected boolean match(int docid)
FilteredDocIdSet
match
in class FilteredDocIdSet
docid
- docid to be testedCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.