Java org.apache.lucene.util DocIdSetBuilder fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util DocIdSetBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util DocIdSetBuilder.

The text is from its open source code.

Constructor

DocIdSetBuilder(int maxDoc)
Create a builder that can contain doc IDs between 0 and maxDoc .
DocIdSetBuilder(int maxDoc, PointValues values, String field)
Create a DocIdSetBuilder instance that is optimized for accumulating docs that match the given PointValues .
DocIdSetBuilder(int maxDoc, int docCount, long valueCount)
DocIdSetBuilder(int maxDoc, Terms terms)
Create a DocIdSetBuilder instance that is optimized for accumulating docs that match the given Terms .

Method

voidadd(DocIdSetIterator iter)
Add the content of the provided DocIdSetIterator to this builder.
DocIdSetbuild()
Build a DocIdSet from the accumulated doc IDs.
BulkAddergrow(int numDocs)
Reserve space and return a BulkAdder object that can be used to add up to numDocs documents.