public class UpdateRowsWriter extends AbstractBinlogTableEventWriter<UpdateRowsEventInfo>
jsonGeneratorAPPLICATION_JSON, CDC_EVENT_TYPE_ATTRIBUTE, SEQUENCE_ID_KEY| Constructor and Description |
|---|
UpdateRowsWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
writeEvent(ProcessSession session,
String transitUri,
UpdateRowsEventInfo 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(UpdateRowsEventInfo event,
Map.Entry<Serializable[],Serializable[]> row,
BitSet includedColumns) |
writeJsongetCommonAttributesendJson, startJsonpublic long writeEvent(ProcessSession session, String transitUri, UpdateRowsEventInfo eventInfo, long currentSequenceId, Relationship relationship)
writeEvent in interface EventWriter<UpdateRowsEventInfo>writeEvent in class AbstractBinlogTableEventWriter<UpdateRowsEventInfo>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(UpdateRowsEventInfo event, Map.Entry<Serializable[],Serializable[]> row, BitSet includedColumns) throws IOException
IOExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.