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

java.lang.Object
  extended by net.sf.lucis.core.Batch<T>
Type Parameters:
T - Checkpoint type.

public final class Batch<T>
extends java.lang.Object

Class representing the set of operations to be performed in order to take the index to the given checkpoint. Objects of this class are built using a batch builder.

Author:
Andres Rodriguez

Nested Class Summary
static class Batch.Addition
           
static class Batch.Builder<T>
           
 
Method Summary
static
<T> Batch.Builder<T>
builder()
           
 com.google.common.collect.ImmutableList<Batch.Addition> getAdditions()
           
 T getCheckpoint()
           
 java.lang.Iterable<org.apache.lucene.index.Term> getDeletions()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public boolean isEmpty()

getCheckpoint

public T getCheckpoint()

getAdditions

public com.google.common.collect.ImmutableList<Batch.Addition> getAdditions()

getDeletions

public java.lang.Iterable<org.apache.lucene.index.Term> getDeletions()

builder

public static <T> Batch.Builder<T> builder()


Copyright © 2009. All Rights Reserved.