@Internal public abstract class JdbcSourceConfigFactory extends Object implements SourceConfig.Factory
SourceConfig.Factory to provide SourceConfig of JDBC data source.| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
connectionPoolSize |
protected int |
connectMaxRetries |
protected java.time.Duration |
connectTimeout |
protected List<String> |
databaseList |
protected Properties |
dbzProperties |
protected double |
distributionFactorLower |
protected double |
distributionFactorUpper |
protected int |
fetchSize |
protected String |
hostname |
protected boolean |
includeSchemaChanges |
protected String |
password |
protected int |
port |
protected String |
serverTimeZone |
protected int |
splitMetaGroupSize |
protected int |
splitSize |
protected StartupOptions |
startupOptions |
protected List<String> |
tableList |
protected String |
username |
| 构造器和说明 |
|---|
JdbcSourceConfigFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
JdbcSourceConfigFactory |
connectionPoolSize(int connectionPoolSize)
The connection pool size.
|
JdbcSourceConfigFactory |
connectMaxRetries(int connectMaxRetries)
The max retry times to get connection.
|
JdbcSourceConfigFactory |
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.
|
abstract JdbcSourceConfig |
create(int subtask) |
JdbcSourceConfigFactory |
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.
|
JdbcSourceConfigFactory |
debeziumProperties(Properties properties)
The Debezium MySQL connector properties.
|
JdbcSourceConfigFactory |
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.
|
JdbcSourceConfigFactory |
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.
|
JdbcSourceConfigFactory |
fetchSize(int fetchSize)
The maximum fetch size for per poll when read table snapshot.
|
JdbcSourceConfigFactory |
hostname(String hostname)
Integer port number of the database server.
|
JdbcSourceConfigFactory |
includeSchemaChanges(boolean includeSchemaChanges)
Whether the
SourceConfig should output the schema changes or not. |
JdbcSourceConfigFactory |
password(String password)
Password to use when connecting to the database server.
|
JdbcSourceConfigFactory |
port(int port)
Integer port number of the database server.
|
JdbcSourceConfigFactory |
serverTimeZone(String timeZone)
The session time zone in database server, e.g.
|
JdbcSourceConfigFactory |
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.
|
JdbcSourceConfigFactory |
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.
|
JdbcSourceConfigFactory |
startupOptions(StartupOptions startupOptions)
Specifies the startup options.
|
JdbcSourceConfigFactory |
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.
|
JdbcSourceConfigFactory |
username(String username)
Name of the user to use when connecting to the database server.
|
protected int port
protected String hostname
protected String username
protected String password
protected StartupOptions startupOptions
protected boolean includeSchemaChanges
protected double distributionFactorUpper
protected double distributionFactorLower
protected int splitSize
protected int splitMetaGroupSize
protected int fetchSize
protected String serverTimeZone
protected java.time.Duration connectTimeout
protected int connectMaxRetries
protected int connectionPoolSize
protected Properties dbzProperties
public JdbcSourceConfigFactory hostname(String hostname)
public JdbcSourceConfigFactory port(int port)
public JdbcSourceConfigFactory databaseList(String... databaseList)
public JdbcSourceConfigFactory tableList(String... tableList)
public JdbcSourceConfigFactory username(String username)
public JdbcSourceConfigFactory password(String password)
public JdbcSourceConfigFactory serverTimeZone(String timeZone)
public JdbcSourceConfigFactory splitSize(int splitSize)
public JdbcSourceConfigFactory splitMetaGroupSize(int splitMetaGroupSize)
public JdbcSourceConfigFactory distributionFactorUpper(double distributionFactorUpper)
public JdbcSourceConfigFactory distributionFactorLower(double distributionFactorLower)
public JdbcSourceConfigFactory fetchSize(int fetchSize)
public JdbcSourceConfigFactory connectTimeout(java.time.Duration connectTimeout)
public JdbcSourceConfigFactory connectionPoolSize(int connectionPoolSize)
public JdbcSourceConfigFactory connectMaxRetries(int connectMaxRetries)
public JdbcSourceConfigFactory includeSchemaChanges(boolean includeSchemaChanges)
SourceConfig should output the schema changes or not.public JdbcSourceConfigFactory debeziumProperties(Properties properties)
public JdbcSourceConfigFactory startupOptions(StartupOptions startupOptions)
public abstract JdbcSourceConfig create(int subtask)
create 在接口中 SourceConfig.FactoryCopyright © 2022 10MG. All rights reserved.