Class 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.
    • 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)  
      void handleBatch​(com.marklogic.client.DatabaseClient client, java.util.List<? extends com.marklogic.client.document.DocumentWriteOperation> items)  
      void setContentFormat​(com.marklogic.client.io.Format contentFormat)  
      void setServerTransform​(com.marklogic.client.document.ServerTransform serverTransform)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultBatchHandler

        public DefaultBatchHandler()
      • DefaultBatchHandler

        public DefaultBatchHandler​(com.marklogic.client.io.Format contentFormat,
                                   com.marklogic.client.document.ServerTransform serverTransform)
    • Method Detail

      • handleBatch

        public void handleBatch​(com.marklogic.client.DatabaseClient client,
                                java.util.List<? extends com.marklogic.client.document.DocumentWriteOperation> items)
        Specified by:
        handleBatch in interface BatchHandler
      • 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)