Class BulkBlobWriter<BlobT extends BlobBase,​AccessorT extends BlobStorageAccessor>

    • Constructor Detail

      • BulkBlobWriter

        public BulkBlobWriter​(AccessorT accessor,
                              Context context)
    • 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).
        Specified by:
        write in interface BulkAttributeWriter
        Parameters:
        data - the data to writer
        watermark - watermark of data being written
        statusCallback - callback to commit the data
      • updateWatermark

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

        protected abstract void deleteBlobIfExists​(BlobT blob)
        Delete specified blob.
      • close

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