org.ektorp.impl
Class BulkDocumentWriter

java.lang.Object
  extended by org.ektorp.impl.BulkDocumentWriter

public class BulkDocumentWriter
extends Object

Author:
henrik lundgren

Constructor Summary
BulkDocumentWriter(org.codehaus.jackson.map.ObjectMapper om)
           
 
Method Summary
 InputStream createInputStreamWrapper(boolean allOrNothing, InputStream in)
           
 void write(Collection<?> objects, boolean allOrNothing, OutputStream out)
          Writes the objects collection as a bulk operation document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkDocumentWriter

public BulkDocumentWriter(org.codehaus.jackson.map.ObjectMapper om)
Method Detail

write

public void write(Collection<?> objects,
                  boolean allOrNothing,
                  OutputStream out)
Writes the objects collection as a bulk operation document. The output stream is flushed and closed by this method.

Parameters:
objects -
allOrNothing -
out -

createInputStreamWrapper

public InputStream createInputStreamWrapper(boolean allOrNothing,
                                            InputStream in)


Copyright © 2011. All Rights Reserved.