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 aDocIdSetIterator
to this builder.build()
Build thePForDeltaDocIdSet
instance.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_VALUE
to disable indexing. -
add
Add a document to this builder. Documents must be added in order. -
add
Convenience method to add the content of aDocIdSetIterator
to this builder.- Throws:
IOException
-
build
Build thePForDeltaDocIdSet
instance.
-