Package com.marklogic.client.ext.batch
Interface BatchWriter
-
- All Known Implementing Classes:
BatchWriterSupport,DataMovementBatchWriter,RestBatchWriter,XccBatchWriter
public interface BatchWriterInterface for writing batches of documents to pre-ML9 clusters (DMSDK can be used with ML9+).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize()Give the writer a chance to perform any initialization it requires before it starts writing documents.voidwaitForCompletion()Assuming that the writer is using a multi-threaded approach, call this to wait for the writer to finish performing all of its writes.voidwrite(java.util.List<? extends com.marklogic.client.document.DocumentWriteOperation> items)Write the given list of documents, as defined by the Java Client DocumentWriteOperation interface.
-
-
-
Method Detail
-
initialize
void initialize()
Give the writer a chance to perform any initialization it requires before it starts writing documents.
-
write
void write(java.util.List<? extends com.marklogic.client.document.DocumentWriteOperation> items)
Write the given list of documents, as defined by the Java Client DocumentWriteOperation interface.- Parameters:
items-
-
waitForCompletion
void waitForCompletion()
Assuming that the writer is using a multi-threaded approach, call this to wait for the writer to finish performing all of its writes.
-
-