@Stable public interface OnlineAttributeWriter extends AttributeWriterBase
The ingest process works as follows:
CommitLog, which is instance of this interface
| Modifier and Type | Interface and Description |
|---|---|
static interface |
OnlineAttributeWriter.Factory<T extends OnlineAttributeWriter>
Serializable factory for OnlineAttributeWriter. |
AttributeWriterBase.Type| Modifier and Type | Method and Description |
|---|---|
OnlineAttributeWriter.Factory<? extends OnlineAttributeWriter> |
asFactory()
Convert instance of this writer to
AttributeWriterBase.Factory suitable for serialization. |
default AttributeWriterBase.Type |
getType()
Retrieve type of the writer.
|
default void |
rollback()
Rollback the writer to last committed position.
|
void |
write(StreamElement data,
CommitCallback statusCallback)
Write given serialized attribute value to given entity.
|
bulk, close, getUri, onlinedefault AttributeWriterBase.Type getType()
AttributeWriterBasegetType in interface AttributeWriterBaseAttributeWriterBase.Type of the writerdefault void rollback()
AttributeWriterBaserollback in interface AttributeWriterBasevoid write(StreamElement data, CommitCallback statusCallback)
data - the data to writestatusCallback - callback used to commit data processingOnlineAttributeWriter.Factory<? extends OnlineAttributeWriter> asFactory()
AttributeWriterBaseAttributeWriterBase.Factory suitable for serialization.asFactory in interface AttributeWriterBaseAttributeWriterBase.Factory representing this readerCopyright © 2017–2021. All rights reserved.