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 Modifier and Type Field Description private static org.slf4j.Logger
LOGGER
private SmtManager<R>
smtManager
-
Constructor Summary
Constructors Constructor Description ReadToInsertEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
apply(R record)
void
close()
org.apache.kafka.common.config.ConfigDef
config()
void
configure(Map<String,?> props)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
smtManager
private SmtManager<R extends org.apache.kafka.connect.connector.ConnectRecord<R>> smtManager
-
-