| 程序包 | 说明 |
|---|---|
| com.alibaba.ververica.cdc.connectors.mysql | |
| com.alibaba.ververica.cdc.connectors.mysql.table |
| 限定符和类型 | 方法和说明 |
|---|---|
MySQLSource.Builder<T> |
MySQLSource.Builder.startupOptions(StartupOptions startupOptions)
Specifies the startup options.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static StartupOptions |
StartupOptions.earliest()
Never to perform snapshot on the monitored database tables upon first startup, just read from
the beginning of the binlog.
|
static StartupOptions |
StartupOptions.initial()
Performs an initial snapshot on the monitored database tables upon first startup, and
continue to read the latest binlog.
|
static StartupOptions |
StartupOptions.latest()
Never to perform snapshot on the monitored database tables upon first startup, just read from
the end of the binlog which means only have the changes since the connector was started.
|
static StartupOptions |
StartupOptions.specificOffset(String specificOffsetFile,
int specificOffsetPos)
Never to perform snapshot on the monitored database tables upon first startup, and directly
read binlog from the specified offset.
|
static StartupOptions |
StartupOptions.timestamp(long startupTimestampMillis)
Never to perform snapshot on the monitored database tables upon first startup, and directly
read binlog from the specified timestamp.
|
| 构造器和说明 |
|---|
MySQLTableSource(org.apache.flink.table.api.TableSchema physicalSchema,
int port,
String hostname,
String database,
String tableName,
String username,
String password,
java.time.ZoneId serverTimeZone,
Properties dbzProperties,
Integer serverId,
StartupOptions startupOptions) |
Copyright © 2021 The Apache Software Foundation. All rights reserved.