Package com.marklogic.client.ext.batch
Class DefaultBatchHandler
- java.lang.Object
-
- com.marklogic.client.ext.helper.LoggingObject
-
- com.marklogic.client.ext.batch.DefaultBatchHandler
-
- All Implemented Interfaces:
BatchHandler
public class DefaultBatchHandler extends LoggingObject implements BatchHandler
Default implementation of BatchHandler that uses a DocumentManager to write documents, along with an optional ServerTransform.
-
-
Field Summary
-
Fields inherited from class com.marklogic.client.ext.helper.LoggingObject
logger
-
-
Constructor Summary
Constructors Constructor Description DefaultBatchHandler()DefaultBatchHandler(com.marklogic.client.io.Format contentFormat, com.marklogic.client.document.ServerTransform serverTransform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.marklogic.client.document.DocumentManager<?,?>buildDocumentManager(com.marklogic.client.DatabaseClient client)voidhandleBatch(com.marklogic.client.DatabaseClient client, java.util.List<? extends com.marklogic.client.document.DocumentWriteOperation> items)voidsetContentFormat(com.marklogic.client.io.Format contentFormat)voidsetServerTransform(com.marklogic.client.document.ServerTransform serverTransform)-
Methods inherited from class com.marklogic.client.ext.helper.LoggingObject
format
-
-
-
-
Method Detail
-
handleBatch
public void handleBatch(com.marklogic.client.DatabaseClient client, java.util.List<? extends com.marklogic.client.document.DocumentWriteOperation> items)- Specified by:
handleBatchin interfaceBatchHandler
-
buildDocumentManager
protected com.marklogic.client.document.DocumentManager<?,?> buildDocumentManager(com.marklogic.client.DatabaseClient client)
-
setServerTransform
public void setServerTransform(com.marklogic.client.document.ServerTransform serverTransform)
-
setContentFormat
public void setContentFormat(com.marklogic.client.io.Format contentFormat)
-
-