DocIdSetBuilder
A builder of DocIdSets. At first it uses a sparse structure to gather documents, and then upgrades to a non-sparse bit set once enough hits match.
To add documents, you first need to call .grow in order to reserve space, and then call BulkAdder.add on the returned BulkAdder.
Constructors
Create a builder that can contain doc IDs between 0 and maxDoc.
Create a DocIdSetBuilder instance that is optimized for accumulating docs that match the given Terms.
Create a DocIdSetBuilder instance that is optimized for accumulating docs that match the given PointValues.
Types
Functions
Add the content of the provided DocIdSetIterator to this builder. NOTE: if you need to build a DocIdSet out of a single DocIdSetIterator, you should rather use [ ].
Reserve space and return a BulkAdder object that can be used to add up to numDocs documents.