Package io.debezium.connector
Class AbstractSourceInfoStructMaker<T extends AbstractSourceInfo>
java.lang.Object
io.debezium.connector.AbstractSourceInfoStructMaker<T>
- All Implemented Interfaces:
SourceInfoStructMaker<T>
public abstract class AbstractSourceInfoStructMaker<T extends AbstractSourceInfo>
extends Object
implements SourceInfoStructMaker<T>
Common information provided by all connectors in either source field or offsets.
When this class schema changes the connector implementations should create
a legacy class that will keep the same behaviour.
- Author:
- Jiri Pechanec
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.kafka.connect.data.SchemaBuilder
protected org.apache.kafka.connect.data.Struct
commonStruct
(T sourceInfo) void
init
(String connector, String version, CommonConnectorConfig connectorConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.debezium.connector.SourceInfoStructMaker
schema, struct
-
Field Details
-
SNAPSHOT_RECORD_SCHEMA
public static final org.apache.kafka.connect.data.Schema SNAPSHOT_RECORD_SCHEMA -
version
-
connector
-
serverName
-
-
Constructor Details
-
AbstractSourceInfoStructMaker
public AbstractSourceInfoStructMaker()
-
-
Method Details
-
init
- Specified by:
init
in interfaceSourceInfoStructMaker<T extends AbstractSourceInfo>
-
commonSchemaBuilder
protected org.apache.kafka.connect.data.SchemaBuilder commonSchemaBuilder() -
commonStruct
-