java.lang.Object
org.elasticsearch.lucene.util.BitSets
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.util.BitSetof(org.apache.lucene.search.DocIdSetIterator iter, int maxDocs) Build aBitSetfrom 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 aBitSetfrom the content of the providedDocIdSetIterator. If the iterator matches all documents, then this method will wrap the returned Bitset asMatchAllBitSetto reduce memory usage.- Throws:
IOException
-