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.Object
A builder forPForDeltaDocIdSet
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PForDeltaDocIdSet.Builder
add(int doc)
Add a document to this builder.PForDeltaDocIdSet.Builder
add(DocIdSetIterator it)
Convenience method to add the content of aDocIdSetIterator
to this builder.PForDeltaDocIdSet
build()
Build thePForDeltaDocIdSet
instance.PForDeltaDocIdSet.Builder
setIndexInterval(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_VALUE
to 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 aDocIdSetIterator
to this builder.- Throws:
java.io.IOException
-
build
public PForDeltaDocIdSet build()
Build thePForDeltaDocIdSet
instance.
-
-