@Internal public class MySqlSourceConfigFactory extends Object implements Serializable
MySqlSourceConfig.| Constructor and Description |
|---|
MySqlSourceConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
MySqlSourceConfigFactory |
connectionPoolSize(int connectionPoolSize)
The connection pool size.
|
MySqlSourceConfigFactory |
connectMaxRetries(int connectMaxRetries)
The max retry times to get connection.
|
MySqlSourceConfigFactory |
connectTimeout(java.time.Duration connectTimeout)
The maximum time that the connector should wait after trying to connect to the MySQL database
server before timing out.
|
MySqlSourceConfig |
createConfig(int subtaskId)
Creates a new
MySqlSourceConfig for the given subtask subtaskId. |
MySqlSourceConfigFactory |
databaseList(String... databaseList)
An optional list of regular expressions that match database names to be monitored; any
database name not included in the whitelist will be excluded from monitoring.
|
MySqlSourceConfigFactory |
debeziumProperties(Properties properties)
The Debezium MySQL connector properties.
|
MySqlSourceConfigFactory |
distributionFactorLower(double distributionFactorLower)
The lower bound of split key evenly distribution factor, the factor is used to determine
whether the table is evenly distribution or not.
|
MySqlSourceConfigFactory |
distributionFactorUpper(double distributionFactorUpper)
The upper bound of split key evenly distribution factor, the factor is used to determine
whether the table is evenly distribution or not.
|
MySqlSourceConfigFactory |
fetchSize(int fetchSize)
The maximum fetch size for per poll when read table snapshot.
|
MySqlSourceConfigFactory |
heartbeatInterval(java.time.Duration heartbeatInterval) |
MySqlSourceConfigFactory |
hostname(String hostname) |
MySqlSourceConfigFactory |
includeSchemaChanges(boolean includeSchemaChanges)
Whether the
MySqlSource should output the schema changes or not. |
MySqlSourceConfigFactory |
jdbcProperties(Properties jdbcProperties)
Custom properties that will overwrite the default JDBC connection URL.
|
MySqlSourceConfigFactory |
password(String password)
Password to use when connecting to the MySQL database server.
|
MySqlSourceConfigFactory |
port(int port)
Integer port number of the MySQL database server.
|
MySqlSourceConfigFactory |
scanNewlyAddedTableEnabled(boolean scanNewlyAddedTableEnabled)
Whether the
MySqlSource should scan the newly added tables or not. |
MySqlSourceConfigFactory |
serverId(String serverId)
A numeric ID or a numeric ID range of this database client, The numeric ID syntax is like
'5400', the numeric ID range syntax is like '5400-5408', The numeric ID range syntax is
required when 'scan.incremental.snapshot.enabled' enabled.
|
MySqlSourceConfigFactory |
serverTimeZone(String timeZone)
The session time zone in database server, e.g.
|
MySqlSourceConfigFactory |
splitMetaGroupSize(int splitMetaGroupSize)
The group size of split meta, if the meta size exceeds the group size, the meta will be will
be divided into multiple groups.
|
MySqlSourceConfigFactory |
splitSize(int splitSize)
The split size (number of rows) of table snapshot, captured tables are split into multiple
splits when read the snapshot of table.
|
MySqlSourceConfigFactory |
startupOptions(StartupOptions startupOptions)
Specifies the startup options.
|
MySqlSourceConfigFactory |
tableList(String... tableList)
An optional list of regular expressions that match fully-qualified table identifiers for
tables to be monitored; any table not included in the list will be excluded from monitoring.
|
MySqlSourceConfigFactory |
username(String username)
Name of the MySQL database to use when connecting to the MySQL database server.
|
public MySqlSourceConfigFactory hostname(String hostname)
public MySqlSourceConfigFactory port(int port)
public MySqlSourceConfigFactory databaseList(String... databaseList)
public MySqlSourceConfigFactory tableList(String... tableList)
public MySqlSourceConfigFactory username(String username)
public MySqlSourceConfigFactory password(String password)
public MySqlSourceConfigFactory serverId(String serverId)
public MySqlSourceConfigFactory serverTimeZone(String timeZone)
public MySqlSourceConfigFactory splitSize(int splitSize)
public MySqlSourceConfigFactory splitMetaGroupSize(int splitMetaGroupSize)
public MySqlSourceConfigFactory distributionFactorUpper(double distributionFactorUpper)
public MySqlSourceConfigFactory distributionFactorLower(double distributionFactorLower)
public MySqlSourceConfigFactory fetchSize(int fetchSize)
public MySqlSourceConfigFactory connectTimeout(java.time.Duration connectTimeout)
public MySqlSourceConfigFactory connectionPoolSize(int connectionPoolSize)
public MySqlSourceConfigFactory connectMaxRetries(int connectMaxRetries)
public MySqlSourceConfigFactory includeSchemaChanges(boolean includeSchemaChanges)
MySqlSource should output the schema changes or not.public MySqlSourceConfigFactory scanNewlyAddedTableEnabled(boolean scanNewlyAddedTableEnabled)
MySqlSource should scan the newly added tables or not.public MySqlSourceConfigFactory jdbcProperties(Properties jdbcProperties)
public MySqlSourceConfigFactory startupOptions(StartupOptions startupOptions)
public MySqlSourceConfigFactory heartbeatInterval(java.time.Duration heartbeatInterval)
public MySqlSourceConfigFactory debeziumProperties(Properties properties)
public MySqlSourceConfig createConfig(int subtaskId)
MySqlSourceConfig for the given subtask subtaskId.Copyright © 2022 The Apache Software Foundation. All rights reserved.