Interface BatchWriter

    • Method Summary

      All Methods Instance Methods Abstract 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 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.
    • 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.