Interface JdbcDataSourceDialect
-
- All Superinterfaces:
AutoCloseable,Closeable,DataSourceDialect<JdbcSourceConfig>,Serializable
- All Known Implementing Classes:
Db2Dialect,OracleDialect,PostgresDialect,SqlServerDialect
@Experimental public interface JdbcDataSourceDialect extends DataSourceDialect<JdbcSourceConfig>
The dialect of JDBC data source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()FetchTask<SourceSplitBase>createFetchTask(SourceSplitBase sourceSplitBase)The fetch task used to fetch data of a snapshot split or stream split.List<io.debezium.relational.TableId>discoverDataCollections(JdbcSourceConfig sourceConfig)Discovers the list of table to capture.Map<io.debezium.relational.TableId,io.debezium.relational.history.TableChanges.TableChange>discoverDataCollectionSchemas(JdbcSourceConfig sourceConfig)Discovers the captured tables' schema bySourceConfig.JdbcConnectionPoolFactorygetPooledDataSourceFactory()Get a connection pool factory to create connection pool.io.debezium.jdbc.JdbcConnectionopenJdbcConnection(JdbcSourceConfig sourceConfig)Creates and opens a newJdbcConnectionbacking connection pool.io.debezium.relational.history.TableChanges.TableChangequeryTableSchema(io.debezium.jdbc.JdbcConnection jdbc, io.debezium.relational.TableId tableId)Query and build the schema of table.-
Methods inherited from interface org.apache.flink.cdc.connectors.base.dialect.DataSourceDialect
createChunkSplitter, createChunkSplitter, createFetchTaskContext, displayCommittedOffset, displayCurrentOffset, getName, isDataCollectionIdCaseSensitive, isIncludeDataCollection, notifyCheckpointComplete
-
-
-
-
Method Detail
-
discoverDataCollections
List<io.debezium.relational.TableId> discoverDataCollections(JdbcSourceConfig sourceConfig)
Discovers the list of table to capture.- Specified by:
discoverDataCollectionsin interfaceDataSourceDialect<JdbcSourceConfig>
-
discoverDataCollectionSchemas
Map<io.debezium.relational.TableId,io.debezium.relational.history.TableChanges.TableChange> discoverDataCollectionSchemas(JdbcSourceConfig sourceConfig)
Discovers the captured tables' schema bySourceConfig.- Specified by:
discoverDataCollectionSchemasin interfaceDataSourceDialect<JdbcSourceConfig>- Parameters:
sourceConfig- a basic source configuration.
-
openJdbcConnection
io.debezium.jdbc.JdbcConnection openJdbcConnection(JdbcSourceConfig sourceConfig)
Creates and opens a newJdbcConnectionbacking connection pool.- Parameters:
sourceConfig- a basic source configuration.- Returns:
- a utility that simplifies using a JDBC connection.
-
getPooledDataSourceFactory
JdbcConnectionPoolFactory getPooledDataSourceFactory()
Get a connection pool factory to create connection pool.
-
queryTableSchema
io.debezium.relational.history.TableChanges.TableChange queryTableSchema(io.debezium.jdbc.JdbcConnection jdbc, io.debezium.relational.TableId tableId)Query and build the schema of table.
-
createFetchTask
FetchTask<SourceSplitBase> createFetchTask(SourceSplitBase sourceSplitBase)
Description copied from interface:DataSourceDialectThe fetch task used to fetch data of a snapshot split or stream split.- Specified by:
createFetchTaskin interfaceDataSourceDialect<JdbcSourceConfig>
-
close
default void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDataSourceDialect<JdbcSourceConfig>- Throws:
IOException
-
-