Package org.apache.lucene.util
Class DocIdBitSet
- java.lang.Object
-
- org.apache.lucene.search.DocIdSet
-
- org.apache.lucene.util.DocIdBitSet
-
public class DocIdBitSet extends DocIdSet
Simple DocIdSet and DocIdSetIterator backed by a BitSet
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.DocIdSet
EMPTY_DOCIDSET
-
-
Constructor Summary
Constructors Constructor Description DocIdBitSet(BitSet bitSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitSetgetBitSet()Returns the underlying BitSet.booleanisCacheable()This DocIdSet implementation is cacheable.DocIdSetIteratoriterator()Provides aDocIdSetIteratorto access the set.
-
-
-
Constructor Detail
-
DocIdBitSet
public DocIdBitSet(BitSet bitSet)
-
-
Method Detail
-
iterator
public DocIdSetIterator iterator()
Description copied from class:DocIdSetProvides aDocIdSetIteratorto access the set. This implementation can returnnullorDocIdSet.EMPTY_DOCIDSET.iterator()if there are no docs that match.
-
isCacheable
public boolean isCacheable()
This DocIdSet implementation is cacheable.- Overrides:
isCacheablein classDocIdSet
-
getBitSet
public BitSet getBitSet()
Returns the underlying BitSet.
-
-