public class StatefulTaskContext extends Object
The offset change and schema change should record to MySqlSplitState when emit the record, thus the Flink's state mechanism can help to store/restore when failover happens.
| Modifier and Type | Class and Description |
|---|---|
static class |
StatefulTaskContext.MySqlEventMetadataProvider
Copied from debezium for accessing here.
|
| Constructor and Description |
|---|
StatefulTaskContext(MySqlSourceConfig sourceConfig,
com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient,
io.debezium.connector.mysql.MySqlConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(MySqlSplit mySqlSplit) |
com.github.shyiko.mysql.binlog.BinaryLogClient |
getBinaryLogClient() |
static io.debezium.util.Clock |
getClock() |
io.debezium.connector.mysql.MySqlConnection |
getConnection() |
io.debezium.connector.mysql.MySqlConnectorConfig |
getConnectorConfig() |
io.debezium.connector.mysql.MySqlDatabaseSchema |
getDatabaseSchema() |
EventDispatcherImpl<io.debezium.relational.TableId> |
getDispatcher() |
io.debezium.pipeline.ErrorHandler |
getErrorHandler() |
io.debezium.connector.mysql.MySqlOffsetContext |
getOffsetContext() |
io.debezium.connector.base.ChangeEventQueue<io.debezium.pipeline.DataChangeEvent> |
getQueue() |
io.debezium.util.SchemaNameAdjuster |
getSchemaNameAdjuster() |
io.debezium.pipeline.metrics.SnapshotChangeEventSourceMetrics |
getSnapshotChangeEventSourceMetrics() |
MySqlSourceConfig |
getSourceConfig() |
io.debezium.pipeline.metrics.StreamingChangeEventSourceMetrics |
getStreamingChangeEventSourceMetrics() |
MySqlTaskContextImpl |
getTaskContext() |
io.debezium.schema.TopicSelector<io.debezium.relational.TableId> |
getTopicSelector() |
public StatefulTaskContext(MySqlSourceConfig sourceConfig, com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, io.debezium.connector.mysql.MySqlConnection connection)
public void configure(MySqlSplit mySqlSplit)
public static io.debezium.util.Clock getClock()
public MySqlSourceConfig getSourceConfig()
public io.debezium.connector.mysql.MySqlConnectorConfig getConnectorConfig()
public io.debezium.connector.mysql.MySqlConnection getConnection()
public com.github.shyiko.mysql.binlog.BinaryLogClient getBinaryLogClient()
public io.debezium.connector.mysql.MySqlDatabaseSchema getDatabaseSchema()
public MySqlTaskContextImpl getTaskContext()
public EventDispatcherImpl<io.debezium.relational.TableId> getDispatcher()
public io.debezium.connector.base.ChangeEventQueue<io.debezium.pipeline.DataChangeEvent> getQueue()
public io.debezium.pipeline.ErrorHandler getErrorHandler()
public io.debezium.connector.mysql.MySqlOffsetContext getOffsetContext()
public io.debezium.schema.TopicSelector<io.debezium.relational.TableId> getTopicSelector()
public io.debezium.pipeline.metrics.SnapshotChangeEventSourceMetrics getSnapshotChangeEventSourceMetrics()
public io.debezium.pipeline.metrics.StreamingChangeEventSourceMetrics getStreamingChangeEventSourceMetrics()
public io.debezium.util.SchemaNameAdjuster getSchemaNameAdjuster()
Copyright © 2022 The Apache Software Foundation. All rights reserved.