Class DDLEventWriter
java.lang.Object
org.apache.nifi.cdc.event.io.AbstractEventWriter<DDLEventInfo>
org.apache.nifi.cdc.mysql.event.io.AbstractBinlogEventWriter<DDLEventInfo>
org.apache.nifi.cdc.mysql.event.io.AbstractBinlogTableEventWriter<DDLEventInfo>
org.apache.nifi.cdc.mysql.event.io.DDLEventWriter
- All Implemented Interfaces:
EventWriter<DDLEventInfo>
A writer class to output MySQL binlog Data Definition Language (DDL) events to flow file(s).
-
Field Summary
Fields inherited from class org.apache.nifi.cdc.event.io.AbstractEventWriter
jsonGeneratorFields inherited from interface org.apache.nifi.cdc.event.io.EventWriter
APPLICATION_JSON, CDC_EVENT_TYPE_ATTRIBUTE, SEQUENCE_ID_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongwriteEvent(org.apache.nifi.processor.ProcessSession session, String transitUri, DDLEventInfo eventInfo, long currentSequenceId, org.apache.nifi.processor.Relationship relationship, EventWriterConfiguration eventWriterConfiguration) Methods inherited from class org.apache.nifi.cdc.mysql.event.io.AbstractBinlogTableEventWriter
getWritableObject, writeJsonMethods inherited from class org.apache.nifi.cdc.mysql.event.io.AbstractBinlogEventWriter
configureEventWriter, finishAndTransferFlowFile, getCommonAttributes, maxEventsPerFlowFile, oneTransactionPerFlowFileMethods inherited from class org.apache.nifi.cdc.event.io.AbstractEventWriter
createJsonGenerator, endFile, endJson, startJson
-
Constructor Details
-
DDLEventWriter
public DDLEventWriter()
-
-
Method Details
-
writeEvent
public long writeEvent(org.apache.nifi.processor.ProcessSession session, String transitUri, DDLEventInfo eventInfo, long currentSequenceId, org.apache.nifi.processor.Relationship relationship, EventWriterConfiguration eventWriterConfiguration) - Specified by:
writeEventin interfaceEventWriter<DDLEventInfo>- Overrides:
writeEventin classAbstractBinlogEventWriter<DDLEventInfo>
-