Class AbstractBulkFileSystemAttributeWriter

    • Method Detail

      • write

        public void write​(StreamElement data,
                          long watermark,
                          CommitCallback statusCallback)
        Description copied from interface: BulkAttributeWriter
        Write given serialized attribute value to given entity. Use the statusCallback to commit the whole bulk (of not yet committed elements).
        Parameters:
        data - the data to writer
        watermark - watermark of data being written
        statusCallback - callback to commit the data
      • handleLateData

        protected void handleLateData​(StreamElement data,
                                      long watermark,
                                      CommitCallback statusCallback)
        Handle data after watermark.
        Parameters:
        data - the late data
        watermark - current watermark
        statusCallback - callback for commit
      • updateWatermark

        public void updateWatermark​(long watermark)
        Description copied from interface: BulkAttributeWriter
        Update watermark when no input data arrives.
        Parameters:
        watermark - timestamp of the new watermark
      • rollback

        public void rollback()
        Description copied from interface: AttributeWriterBase
        Rollback the writer to last committed position.
      • close

        public void close()
        Description copied from interface: AttributeWriterBase
        Close allocated resources of this writer. This is supposed to be idempotent.