net.sf.lucis.core
Interface Writer

All Known Implementing Classes:
DefaultWriter

public interface Writer

A writer is the object that applies the operations into a store.

Author:
Andres Rodriguez.

Method Summary
<T> IndexStatus
write(Store<T> store, Batch<T> batch)
          Applies a batch of operations.
 

Method Detail

write

<T> IndexStatus write(Store<T> store,
                      Batch<T> batch)
                  throws InterruptedException
Applies a batch of operations.

Type Parameters:
T - Checkpoint type.
Parameters:
store - Destination store.
batch - Batch to apply.
Returns:
The final index status or null if the batch is null or the final checkpoint is equals to the initial one.
Throws:
InterruptedException - if the current task has been interrupted.


Copyright © 2013. All Rights Reserved.