@Stable public interface BulkAttributeWriter extends AttributeWriterBase
The ingest process works as follows:
CommitLog, which is instance of this interface
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BulkAttributeWriter.Factory<T extends BulkAttributeWriter>
Serializable factory for BulkAttributeWriter. |
AttributeWriterBase.Type| Modifier and Type | Method and Description |
|---|---|
BulkAttributeWriter.Factory<?> |
asFactory()
Convert instance of this writer to
AttributeWriterBase.Factory suitable for serialization. |
default AttributeWriterBase.Type |
getType()
Retrieve type of the writer.
|
default void |
updateWatermark(long watermark)
Update watermark when no input data arrives.
|
void |
write(StreamElement data,
long watermark,
CommitCallback statusCallback)
Write given serialized attribute value to given entity.
|
default AttributeWriterBase.Type getType()
AttributeWriterBasegetType in interface AttributeWriterBaseAttributeWriterBase.Type of the writervoid write(StreamElement data, long watermark, CommitCallback statusCallback)
data - the data to writerwatermark - watermark of data being writtenstatusCallback - callback to commit the datadefault void updateWatermark(long watermark)
watermark - timestamp of the new watermarkBulkAttributeWriter.Factory<?> asFactory()
AttributeWriterBaseAttributeWriterBase.Factory suitable for serialization.asFactory in interface AttributeWriterBaseAttributeWriterBase.Factory representing this readerCopyright © 2017–2021. All rights reserved.