Class DataMovementBatchWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      DataMovementBatchWriter​(com.marklogic.client.DatabaseClient client)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize()
      Give the writer a chance to perform any initialization it requires before it starts writing documents.
      void setBatchSize​(int batchSize)  
      void setThreadCount​(int threadCount)  
      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.
      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.
      • Methods inherited from class java.lang.Object

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

      • DataMovementBatchWriter

        public DataMovementBatchWriter​(com.marklogic.client.DatabaseClient client)
    • Method Detail

      • initialize

        public void initialize()
        Description copied from interface: BatchWriter
        Give the writer a chance to perform any initialization it requires before it starts writing documents.
        Specified by:
        initialize in interface BatchWriter
      • write

        public void write​(java.util.List<? extends com.marklogic.client.document.DocumentWriteOperation> items)
        Description copied from interface: BatchWriter
        Write the given list of documents, as defined by the Java Client DocumentWriteOperation interface.
        Specified by:
        write in interface BatchWriter
      • waitForCompletion

        public void waitForCompletion()
        Description copied from interface: BatchWriter
        Assuming that the writer is using a multi-threaded approach, call this to wait for the writer to finish performing all of its writes.
        Specified by:
        waitForCompletion in interface BatchWriter
      • setBatchSize

        public void setBatchSize​(int batchSize)
      • setThreadCount

        public void setThreadCount​(int threadCount)