Class CommitTransactionEventWriter
java.lang.Object
org.apache.nifi.cdc.event.io.AbstractEventWriter<CommitTransactionEventInfo>
org.apache.nifi.cdc.mysql.event.io.AbstractBinlogEventWriter<CommitTransactionEventInfo>
org.apache.nifi.cdc.mysql.event.io.CommitTransactionEventWriter
- All Implemented Interfaces:
EventWriter<CommitTransactionEventInfo>
public class CommitTransactionEventWriter
extends AbstractBinlogEventWriter<CommitTransactionEventInfo>
A writer for events corresponding to the end (i.e. commit) of a MySQL transaction
-
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(ProcessSession session, String transitUri, CommitTransactionEventInfo eventInfo, long currentSequenceId, Relationship relationship, EventWriterConfiguration eventWriterConfiguration) protected voidMethods 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
-
CommitTransactionEventWriter
public CommitTransactionEventWriter()
-
-
Method Details
-
writeEvent
public long writeEvent(ProcessSession session, String transitUri, CommitTransactionEventInfo eventInfo, long currentSequenceId, Relationship relationship, EventWriterConfiguration eventWriterConfiguration) - Specified by:
writeEventin interfaceEventWriter<CommitTransactionEventInfo>- Overrides:
writeEventin classAbstractBinlogEventWriter<CommitTransactionEventInfo>
-
writeJson
- Overrides:
writeJsonin classAbstractBinlogEventWriter<CommitTransactionEventInfo>- Throws:
IOException
-