Class MariaDbConnectorAdapter
java.lang.Object
io.debezium.connector.mysql.strategy.mariadb.MariaDbConnectorAdapter
- All Implemented Interfaces:
ConnectorAdapter
This connector adapter provides a complete implementation for MariaDB assuming that
the MariaDB driver is used for connections.
- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MariaDbBinaryLogClientConfiguratorprivate final MySqlConnectorConfigprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(Configuration configuration) IncrementalSnapshotChangeEventSource<MySqlPartition,? extends io.debezium.spi.schema.DataCollectionId> createIncrementalSnapshotChangeEventSource(MySqlConnectorConfig connectorConfig, AbstractConnectorConnection connection, EventDispatcher<MySqlPartition, ? extends io.debezium.spi.schema.DataCollectionId> dispatcher, MySqlDatabaseSchema schema, Clock clock, SnapshotProgressListener<MySqlPartition> snapshotProgressListener, DataChangeEventListener<MySqlPartition> dataChangeEventListener, NotificationService<MySqlPartition, MySqlOffsetContext> notificationService) <T> IncrementalSnapshotContext<T>getJavaEncodingForCharSet(String charSetName) getReadOnlyIncrementalSnapshotSignalOffset(MySqlOffsetContext previousOffsets) getRecordingQueryFromEvent(com.github.shyiko.mysql.binlog.event.EventData eventData) <T> IncrementalSnapshotContext<T>loadIncrementalSnapshotContextFromOffset(Map<String, ?> offset) voidsetOffsetContextBinlogPositionAndGtidDetailsForSnapshot(MySqlOffsetContext offsetContext, AbstractConnectorConnection connection, SnapshotterService snapshotterService) Sets the offset context binlog details.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
connectorConfig
-
binaryLogClientConfigurator
-
-
Constructor Details
-
MariaDbConnectorAdapter
-
-
Method Details
-
createConnection
- Specified by:
createConnectionin interfaceConnectorAdapter
-
getBinaryLogClientConfigurator
- Specified by:
getBinaryLogClientConfiguratorin interfaceConnectorAdapter
-
setOffsetContextBinlogPositionAndGtidDetailsForSnapshot
public void setOffsetContextBinlogPositionAndGtidDetailsForSnapshot(MySqlOffsetContext offsetContext, AbstractConnectorConnection connection, SnapshotterService snapshotterService) throws Exception Description copied from interface:ConnectorAdapterSets the offset context binlog details.- Specified by:
setOffsetContextBinlogPositionAndGtidDetailsForSnapshotin interfaceConnectorAdapter- Parameters:
offsetContext- the offset context to be mutatedconnection- the database connection to be used- Throws:
Exception- if an exception is thrown
-
getRecordingQueryFromEvent
- Specified by:
getRecordingQueryFromEventin interfaceConnectorAdapter
-
getJavaEncodingForCharSet
- Specified by:
getJavaEncodingForCharSetin interfaceConnectorAdapter
-
getHistoryRecordComparator
- Specified by:
getHistoryRecordComparatorin interfaceConnectorAdapter
-
getIncrementalSnapshotContext
- Specified by:
getIncrementalSnapshotContextin interfaceConnectorAdapter
-
loadIncrementalSnapshotContextFromOffset
public <T> IncrementalSnapshotContext<T> loadIncrementalSnapshotContextFromOffset(Map<String, ?> offset) - Specified by:
loadIncrementalSnapshotContextFromOffsetin interfaceConnectorAdapter
-
getReadOnlyIncrementalSnapshotSignalOffset
- Specified by:
getReadOnlyIncrementalSnapshotSignalOffsetin interfaceConnectorAdapter
-
createIncrementalSnapshotChangeEventSource
public IncrementalSnapshotChangeEventSource<MySqlPartition,? extends io.debezium.spi.schema.DataCollectionId> createIncrementalSnapshotChangeEventSource(MySqlConnectorConfig connectorConfig, AbstractConnectorConnection connection, EventDispatcher<MySqlPartition, ? extends io.debezium.spi.schema.DataCollectionId> dispatcher, MySqlDatabaseSchema schema, Clock clock, SnapshotProgressListener<MySqlPartition> snapshotProgressListener, DataChangeEventListener<MySqlPartition> dataChangeEventListener, NotificationService<MySqlPartition, MySqlOffsetContext> notificationService) - Specified by:
createIncrementalSnapshotChangeEventSourcein interfaceConnectorAdapter
-