Class Db2TableSource
- java.lang.Object
-
- org.apache.flink.cdc.connectors.db2.table.Db2TableSource
-
- All Implemented Interfaces:
org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata,org.apache.flink.table.connector.source.DynamicTableSource,org.apache.flink.table.connector.source.ScanTableSource
public class Db2TableSource extends Object implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
TableSource for DB2 CDC connector.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>metadataKeysMetadata that is appended at the end of a physical source row.protected org.apache.flink.table.types.DataTypeproducedDataTypeData type that describes the final output of the source.
-
Constructor Summary
Constructors Constructor Description Db2TableSource(org.apache.flink.table.catalog.ResolvedSchema physicalSchema, int port, String hostname, String database, String tableName, String username, String password, java.time.ZoneId serverTimeZone, Properties dbzProperties, StartupOptions startupOptions, boolean enableParallelRead, int splitSize, int splitMetaGroupSize, int fetchSize, java.time.Duration connectTimeout, int connectMaxRetries, int connectionPoolSize, double distributionFactorUpper, double distributionFactorLower, String chunkKeyColumn, boolean closeIdleReaders, boolean skipSnapshotBackfill, boolean assignUnboundedChunkFirst, boolean releaseSnapshotMetadataEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyReadableMetadata(List<String> metadataKeys, org.apache.flink.table.types.DataType producedDataType)StringasSummaryString()org.apache.flink.table.connector.source.DynamicTableSourcecopy()booleanequals(Object o)org.apache.flink.table.connector.ChangelogModegetChangelogMode()org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvidergetScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext scanContext)inthashCode()Map<String,org.apache.flink.table.types.DataType>listReadableMetadata()
-
-
-
Constructor Detail
-
Db2TableSource
public Db2TableSource(org.apache.flink.table.catalog.ResolvedSchema physicalSchema, int port, String hostname, String database, String tableName, String username, String password, java.time.ZoneId serverTimeZone, Properties dbzProperties, StartupOptions startupOptions, boolean enableParallelRead, int splitSize, int splitMetaGroupSize, int fetchSize, java.time.Duration connectTimeout, int connectMaxRetries, int connectionPoolSize, double distributionFactorUpper, double distributionFactorLower, @Nullable String chunkKeyColumn, boolean closeIdleReaders, boolean skipSnapshotBackfill, boolean assignUnboundedChunkFirst, boolean releaseSnapshotMetadataEnabled)
-
-
Method Detail
-
getChangelogMode
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
- Specified by:
getChangelogModein interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
getScanRuntimeProvider
public org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext scanContext)
- Specified by:
getScanRuntimeProviderin interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
copy
public org.apache.flink.table.connector.source.DynamicTableSource copy()
- Specified by:
copyin interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
asSummaryString
public String asSummaryString()
- Specified by:
asSummaryStringin interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
listReadableMetadata
public Map<String,org.apache.flink.table.types.DataType> listReadableMetadata()
- Specified by:
listReadableMetadatain interfaceorg.apache.flink.table.connector.source.abilities.SupportsReadingMetadata
-
-