Class MySqlDataSource
- java.lang.Object
-
- org.apache.flink.cdc.connectors.mysql.source.MySqlDataSource
-
- All Implemented Interfaces:
DataSource
@Internal public class MySqlDataSource extends Object implements DataSource
ADataSourcefor mysql cdc connector.
-
-
Constructor Summary
Constructors Constructor Description MySqlDataSource(MySqlSourceConfigFactory configFactory)MySqlDataSource(MySqlSourceConfigFactory configFactory, List<MySqlReadableMetadata> 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.MySqlSourceConfiggetSourceConfig()booleanisParallelMetadataSource()Indicating if this source may generate metadata events (SchemaChangeEvents) in parallel for each table.SupportedMetadataColumn[]supportedMetadataColumns()Get theSupportedMetadataColumns of the source.
-
-
-
Constructor Detail
-
MySqlDataSource
public MySqlDataSource(MySqlSourceConfigFactory configFactory)
-
MySqlDataSource
public MySqlDataSource(MySqlSourceConfigFactory configFactory, List<MySqlReadableMetadata> 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
-
getSourceConfig
@VisibleForTesting public MySqlSourceConfig getSourceConfig()
-
supportedMetadataColumns
public SupportedMetadataColumn[] supportedMetadataColumns()
Description copied from interface:DataSourceGet theSupportedMetadataColumns of the source.- Specified by:
supportedMetadataColumnsin 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
-
-