Class MongoStreamingWrite

  • All Implemented Interfaces:
    StreamingWrite

    public class MongoStreamingWrite
    extends java.lang.Object
    implements StreamingWrite
    MongoStreamingWrite defines how to write the data to MongoDB when streaming data.
    • Method Detail

      • commit

        public void commit​(long epochId,
                           WriterCommitMessage[] messages)
        Logs the that the write has been committed
        Specified by:
        commit in interface StreamingWrite
        Parameters:
        epochId - the epoch id for the write
        messages - WriterCommitMessages
      • abort

        public void abort​(long epochId,
                          WriterCommitMessage[] messages)
        The write was aborted due to a failure.

        There is no automatic clean up, so the database state is undetermined.

        Specified by:
        abort in interface StreamingWrite
        Parameters:
        epochId - the epoch id for the write
        messages - the WriterCommitMessages
        Throws:
        DataException - with information regarding the failed write