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