org.apache.lucene.util
Class PForDeltaDocIdSet.Builder

java.lang.Object
  extended by org.apache.lucene.util.PForDeltaDocIdSet.Builder
Enclosing class:
PForDeltaDocIdSet

public static class PForDeltaDocIdSet.Builder
extends Object

A builder for PForDeltaDocIdSet.


Constructor Summary
PForDeltaDocIdSet.Builder()
          Sole constructor.
 
Method Summary
 PForDeltaDocIdSet.Builder add(DocIdSetIterator it)
          Convenience method to add the content of a DocIdSetIterator to this builder.
 PForDeltaDocIdSet.Builder add(int doc)
          Add a document to this builder.
 PForDeltaDocIdSet build()
          Build the PForDeltaDocIdSet instance.
 PForDeltaDocIdSet.Builder setIndexInterval(int indexInterval)
          Set the index interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PForDeltaDocIdSet.Builder

public PForDeltaDocIdSet.Builder()
Sole constructor.

Method Detail

setIndexInterval

public PForDeltaDocIdSet.Builder setIndexInterval(int indexInterval)
Set the index interval. Every indexInterval-th block will be stored in the index. Set to Integer.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 IOException
Convenience method to add the content of a DocIdSetIterator to this builder.

Throws:
IOException

build

public PForDeltaDocIdSet build()
Build the PForDeltaDocIdSet instance.



Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.