Package org.apache.lucene.util
Class PForDeltaDocIdSet.Builder
java.lang.Object
org.apache.lucene.util.PForDeltaDocIdSet.Builder
- Enclosing class:
- PForDeltaDocIdSet
A builder for
PForDeltaDocIdSet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(int doc) Add a document to this builder.add(DocIdSetIterator it) Convenience method to add the content of aDocIdSetIteratorto this builder.build()Build thePForDeltaDocIdSetinstance.setIndexInterval(int indexInterval) Set the index interval.
-
Constructor Details
-
Builder
public Builder()Sole constructor.
-
-
Method Details
-
setIndexInterval
Set the index interval. EveryindexInterval-th block will be stored in the index. Set toInteger.MAX_VALUEto disable indexing. -
add
Add a document to this builder. Documents must be added in order. -
add
Convenience method to add the content of aDocIdSetIteratorto this builder.- Throws:
IOException
-
build
Build thePForDeltaDocIdSetinstance.
-