net.sf.lucis.core
Class Batch.Builder<T>

java.lang.Object
  extended by net.sf.lucis.core.Batch.Builder<T>
Enclosing class:
Batch<T>

public static class Batch.Builder<T>
extends Object


Method Summary
 Batch.Builder<T> add(Document document)
           
 Batch.Builder<T> add(Document document, Analyzer analyzer)
           
 Batch<T> build(T checkpoint)
           
 Batch.Builder<T> delete(String field, String text)
           
 Batch.Builder<T> delete(Term term)
           
 Batch.Builder<T> recreate()
          States that the index must be recreated before applying the batch.
 Batch.Builder<T> update(Document document, String field, String text)
           
 Batch.Builder<T> update(Document document, Term term)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

recreate

public Batch.Builder<T> recreate()
                          throws InterruptedException
States that the index must be recreated before applying the batch.

Throws:
InterruptedException

add

public Batch.Builder<T> add(Document document)
                     throws InterruptedException
Throws:
InterruptedException

add

public Batch.Builder<T> add(Document document,
                            Analyzer analyzer)
                     throws InterruptedException
Throws:
InterruptedException

delete

public Batch.Builder<T> delete(String field,
                               String text)
                        throws InterruptedException
Throws:
InterruptedException

delete

public Batch.Builder<T> delete(Term term)
                        throws InterruptedException
Throws:
InterruptedException

update

public Batch.Builder<T> update(Document document,
                               String field,
                               String text)
                        throws InterruptedException
Throws:
InterruptedException

update

public Batch.Builder<T> update(Document document,
                               Term term)
                        throws InterruptedException
Throws:
InterruptedException

build

public Batch<T> build(T checkpoint)
               throws InterruptedException
Throws:
InterruptedException


Copyright © 2013. All Rights Reserved.