Class ReadToInsertEvent<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
java.lang.Object
io.debezium.connector.mysql.transforms.ReadToInsertEvent<R>
- Type Parameters:
R
- the subtype ofConnectRecord
on which this transformation will operate
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.kafka.common.Configurable
,org.apache.kafka.connect.transforms.Transformation<R>
public class ReadToInsertEvent<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
extends Object
implements org.apache.kafka.connect.transforms.Transformation<R>
This SMT allows the MySql connector to emit snapshot events as "c" operation type (CREATE) by changing the 'op' field of the records
from "r" (default) to "c".
- Author:
- Anisha Mohanty
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
smtManager
-
-
Constructor Details
-
ReadToInsertEvent
public ReadToInsertEvent()
-
-
Method Details
-
apply
-
config
public org.apache.kafka.common.config.ConfigDef config() -
close
public void close() -
configure
- Specified by:
configure
in interfaceorg.apache.kafka.common.Configurable
-