Package org.apache.lucene.util
Class RoaringDocIdSet.Builder
java.lang.Object
org.apache.lucene.util.RoaringDocIdSet.Builder
- Enclosing class:
RoaringDocIdSet
A builder of
RoaringDocIdSets.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(int docId) Add a new doc-id to this builder.add(DocIdSetIterator disi) Add the content of the providedDocIdSetIterator.build()Build an instance.
-
Constructor Details
-
Builder
public Builder(int maxDoc) Sole constructor.
-
-
Method Details
-
add
Add a new doc-id to this builder. NOTE: doc ids must be added in order. -
add
Add the content of the providedDocIdSetIterator.- Throws:
IOException
-
build
Build an instance.
-