Package org.apache.lucene.util
Class PForDeltaDocIdSet.Builder
- java.lang.Object
-
- org.apache.lucene.util.PForDeltaDocIdSet.Builder
-
- Enclosing class:
- PForDeltaDocIdSet
public static class PForDeltaDocIdSet.Builder extends java.lang.ObjectA builder forPForDeltaDocIdSet.
-
-
Constructor Summary
Constructors Constructor Description Builder()Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PForDeltaDocIdSet.Builderadd(int doc)Add a document to this builder.PForDeltaDocIdSet.Builderadd(DocIdSetIterator it)Convenience method to add the content of aDocIdSetIteratorto this builder.PForDeltaDocIdSetbuild()Build thePForDeltaDocIdSetinstance.PForDeltaDocIdSet.BuildersetIndexInterval(int indexInterval)Set the index interval.
-
-
-
Method Detail
-
setIndexInterval
public PForDeltaDocIdSet.Builder setIndexInterval(int indexInterval)
Set the index interval. EveryindexInterval-th block will be stored in the index. Set toInteger.MAX_VALUEto disable indexing.
-
add
public PForDeltaDocIdSet.Builder add(int doc)
Add a document to this builder. Documents must be added in order.
-
add
public PForDeltaDocIdSet.Builder add(DocIdSetIterator it) throws java.io.IOException
Convenience method to add the content of aDocIdSetIteratorto this builder.- Throws:
java.io.IOException
-
build
public PForDeltaDocIdSet build()
Build thePForDeltaDocIdSetinstance.
-
-