java.lang.Object
org.elasticsearch.lucene.util.BitSets
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.util.BitSet
of
(org.apache.lucene.search.DocIdSetIterator iter, int maxDocs) Build aBitSet
from the content of the providedDocIdSetIterator
.
-
Method Details
-
of
public static org.apache.lucene.util.BitSet of(org.apache.lucene.search.DocIdSetIterator iter, int maxDocs) throws IOException Build aBitSet
from the content of the providedDocIdSetIterator
. If the iterator matches all documents, then this method will wrap the returned Bitset asMatchAllBitSet
to reduce memory usage.- Throws:
IOException
-