Package io.debezium.connector.mysql
Class MySqlDatabaseSchema
- All Implemented Interfaces:
DatabaseSchema<TableId>,HistorizedDatabaseSchema<TableId>,AutoCloseable
@NotThreadSafe
public class MySqlDatabaseSchema
extends BinlogDatabaseSchema<MySqlPartition,MySqlOffsetContext,MySqlValueConverters,MySqlDefaultValueConverter>
Component that records the schema history for databases hosted by a MySQL database server. The schema information includes
the
table definitions and the Kafka Connect Schemas for each table, where the
Schema excludes any columns that have been specified in the
configuration.- Author:
- Randall Hauch
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.schema.HistorizedDatabaseSchema
HistorizedDatabaseSchema.SchemaChangeEventConsumer -
Field Summary
Fields inherited from class io.debezium.relational.HistorizedRelationalDatabaseSchema
schemaHistory, storageInitializationExecutedFields inherited from interface io.debezium.schema.DatabaseSchema
NO_CAPTURED_DATA_COLLECTIONS_WARNING -
Constructor Summary
ConstructorsConstructorDescriptionMySqlDatabaseSchema(MySqlConnectorConfig connectorConfig, MySqlValueConverters valueConverter, io.debezium.spi.topic.TopicNamingStrategy<TableId> topicNamingStrategy, SchemaNameAdjuster schemaNameAdjuster, boolean tableIdCaseInsensitive) Create a schema component given the suppliedMySQL connector configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected DdlParsercreateDdlParser(BinlogConnectorConfig connectorConfig, MySqlValueConverters valueConverter) Methods inherited from class io.debezium.connector.binlog.BinlogDatabaseSchema
applySchemaChange, assignTableNumber, capturedTablesAsStringArray, clearTableMappings, getDdlParser, getExcludeTableId, getTableId, handleDatabaseEvent, handleTableEvent, isGlobalSetVariableStatement, parseSnapshotDdl, parseStreamingDdl, refreshSchemas, setSystemVariables, skipSchemaChangeEvent, systemVariablesMethods inherited from class io.debezium.relational.HistorizedRelationalDatabaseSchema
close, ddlFilter, historyExists, initializeStorage, isHistorized, isStorageInitializationExecuted, record, recover, skipUnparseableDdlStatements, storeOnlyCapturedDatabases, storeOnlyCapturedTables, tableInformationCompleteMethods inherited from class io.debezium.relational.RelationalDatabaseSchema
assureNonEmptySchema, buildAndRegisterSchema, clearSchemas, getTableFilter, refresh, refreshSchema, removeSchema, schemaFor, tableFor, tableIds, tablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.schema.DatabaseSchema
assureNonEmptySchema, schemaForMethods inherited from interface io.debezium.schema.HistorizedDatabaseSchema
recover
-
Constructor Details
-
MySqlDatabaseSchema
public MySqlDatabaseSchema(MySqlConnectorConfig connectorConfig, MySqlValueConverters valueConverter, io.debezium.spi.topic.TopicNamingStrategy<TableId> topicNamingStrategy, SchemaNameAdjuster schemaNameAdjuster, boolean tableIdCaseInsensitive) Create a schema component given the suppliedMySQL connector configuration. The DDL statements passed to the schema are parsed and a logical model of the database schema is created.
-
-
Method Details
-
createDdlParser
protected DdlParser createDdlParser(BinlogConnectorConfig connectorConfig, MySqlValueConverters valueConverter) - Specified by:
createDdlParserin classBinlogDatabaseSchema<MySqlPartition,MySqlOffsetContext, MySqlValueConverters, MySqlDefaultValueConverter>
-