public class DeleteRowsWriter extends AbstractBinlogTableEventWriter<DeleteRowsEventInfo>
jsonGeneratorAPPLICATION_JSON, CDC_EVENT_TYPE_ATTRIBUTE, SEQUENCE_ID_KEY| Constructor and Description |
|---|
DeleteRowsWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
writeEvent(ProcessSession session,
String transitUri,
DeleteRowsEventInfo eventInfo,
long currentSequenceId,
Relationship relationship)
Creates and transfers a new flow file whose contents are the JSON-serialized value of the specified event, and the sequence ID attribute set
|
protected void |
writeRow(DeleteRowsEventInfo event,
Serializable[] row,
BitSet includedColumns) |
writeJsongetCommonAttributesendJson, startJsonpublic long writeEvent(ProcessSession session, String transitUri, DeleteRowsEventInfo eventInfo, long currentSequenceId, Relationship relationship)
writeEvent in interface EventWriter<DeleteRowsEventInfo>writeEvent in class AbstractBinlogTableEventWriter<DeleteRowsEventInfo>session - A reference to a ProcessSession from which the flow file(s) will be created and transferredeventInfo - An event whose value will become the contents of the flow fileprotected void writeRow(DeleteRowsEventInfo event, Serializable[] row, BitSet includedColumns) throws IOException
IOExceptionCopyright © 2022 Apache NiFi Project. All rights reserved.