Class AbstractBinlogTableEventWriter<T extends BinlogTableEventInfo>
java.lang.Object
org.apache.nifi.cdc.event.io.AbstractEventWriter<T>
org.apache.nifi.cdc.mysql.event.io.AbstractBinlogEventWriter<T>
org.apache.nifi.cdc.mysql.event.io.AbstractBinlogTableEventWriter<T>
- All Implemented Interfaces:
EventWriter<T>
- Direct Known Subclasses:
DDLEventWriter,DeleteRowsWriter,InsertRowsWriter,UpdateRowsWriter
public abstract class AbstractBinlogTableEventWriter<T extends BinlogTableEventInfo>
extends AbstractBinlogEventWriter<T>
An abstract base class for writing MYSQL table-related binlog events into flow file(s), e.g.
-
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 TypeMethodDescriptionprotected ObjectgetWritableObject(Integer type, Serializable value) protected voidMethods inherited from class org.apache.nifi.cdc.mysql.event.io.AbstractBinlogEventWriter
configureEventWriter, finishAndTransferFlowFile, getCommonAttributes, maxEventsPerFlowFile, oneTransactionPerFlowFile, writeEventMethods inherited from class org.apache.nifi.cdc.event.io.AbstractEventWriter
createJsonGenerator, endFile, endJson, startJson
-
Constructor Details
-
AbstractBinlogTableEventWriter
public AbstractBinlogTableEventWriter()
-
-
Method Details
-
getWritableObject
-
writeJson
- Overrides:
writeJsonin classAbstractBinlogEventWriter<T extends BinlogTableEventInfo>- Throws:
IOException
-