net.sf.lucis.core.impl
Class DefaultWriter

java.lang.Object
  extended by net.sf.lucis.core.impl.DefaultWriter
All Implemented Interfaces:
Writer

public final class DefaultWriter
extends java.lang.Object
implements Writer

Default writer implementation.

Author:
Andres Rodriguez.

Constructor Summary
DefaultWriter()
           
DefaultWriter(WriterConfiguration config)
           
 
Method Summary
 void setLogName(java.lang.String name)
           
<T> IndexStatus
write(Store<T> store, Batch<T> batch)
          Applies a batch of operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWriter

public DefaultWriter()

DefaultWriter

public DefaultWriter(WriterConfiguration config)
Method Detail

setLogName

public void setLogName(java.lang.String name)

write

public <T> IndexStatus write(Store<T> store,
                             Batch<T> batch)
Description copied from interface: Writer
Applies a batch of operations.

Specified by:
write in interface Writer
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.


Copyright © 2009. All Rights Reserved.