Class SqlServerDataSource
- java.lang.Object
-
- org.apache.flink.cdc.connectors.sqlserver.source.SqlServerDataSource
-
- All Implemented Interfaces:
DataSource
@Internal public class SqlServerDataSource extends Object implements DataSource
ADataSourcefor SQL Server CDC connector.
-
-
Constructor Summary
Constructors Constructor Description SqlServerDataSource(SqlServerSourceConfigFactory configFactory)SqlServerDataSource(SqlServerSourceConfigFactory configFactory, List<SqlServerReadableMetadata> readableMetadataList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSourceProvidergetEventSourceProvider()Get theEventSourceProviderfor reading events from external systems.MetadataAccessorgetMetadataAccessor()Get theMetadataAccessorfor accessing metadata from external systems.SqlServerSourceConfiggetSqlServerSourceConfig()booleanisParallelMetadataSource()Indicating if this source may generate metadata events (SchemaChangeEvents) in parallel for each table.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.cdc.common.source.DataSource
supportedMetadataColumns
-
-
-
-
Constructor Detail
-
SqlServerDataSource
public SqlServerDataSource(SqlServerSourceConfigFactory configFactory)
-
SqlServerDataSource
public SqlServerDataSource(SqlServerSourceConfigFactory configFactory, List<SqlServerReadableMetadata> readableMetadataList)
-
-
Method Detail
-
getEventSourceProvider
public EventSourceProvider getEventSourceProvider()
Description copied from interface:DataSourceGet theEventSourceProviderfor reading events from external systems.- Specified by:
getEventSourceProviderin interfaceDataSource
-
getMetadataAccessor
public MetadataAccessor getMetadataAccessor()
Description copied from interface:DataSourceGet theMetadataAccessorfor accessing metadata from external systems.- Specified by:
getMetadataAccessorin interfaceDataSource
-
isParallelMetadataSource
public boolean isParallelMetadataSource()
Description copied from interface:DataSourceIndicating if this source may generate metadata events (SchemaChangeEvents) in parallel for each table. If returnsfalse, you'll get a regular operator topology that is compatible with single-incremented sources like MySQL. Returnstruefor sources that does not maintain a globally sequential schema change events stream, like MongoDB or Kafka.
Note that new topology still an experimental feature. Returnfalseby default to avoid unexpected behaviors.- Specified by:
isParallelMetadataSourcein interfaceDataSource
-
getSqlServerSourceConfig
@VisibleForTesting public SqlServerSourceConfig getSqlServerSourceConfig()
-
-