Class PostgresDataSource
- java.lang.Object
-
- org.apache.flink.cdc.connectors.postgres.source.PostgresDataSource
-
- All Implemented Interfaces:
DataSource
@Internal public class PostgresDataSource extends Object implements DataSource
ADataSourcefor Postgres cdc connector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostgresDataSource.PostgresPipelineSource<T>TheJdbcIncrementalSourceimplementation for Postgres.
-
Constructor Summary
Constructors Constructor Description PostgresDataSource(PostgresSourceConfigFactory configFactory)PostgresDataSource(PostgresSourceConfigFactory configFactory, List<PostgreSQLReadableMetadata> 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.PostgresSourceConfiggetPostgresSourceConfig()booleanisParallelMetadataSource()Indicating if this source may generate metadata events (SchemaChangeEvents) in parallel for each table.SupportedMetadataColumn[]supportedMetadataColumns()Get theSupportedMetadataColumns of the source.
-
-
-
Constructor Detail
-
PostgresDataSource
public PostgresDataSource(PostgresSourceConfigFactory configFactory)
-
PostgresDataSource
public PostgresDataSource(PostgresSourceConfigFactory configFactory, List<PostgreSQLReadableMetadata> 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
-
getPostgresSourceConfig
@VisibleForTesting public PostgresSourceConfig getPostgresSourceConfig()
-
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
-
-