public class SyncJobHandler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SyncJobHandler.SourceType
CDC source type.
|
Constructor and Description |
---|
SyncJobHandler(SyncJobHandler.SourceType sourceType,
Map<String,String> cdcSourceConfig,
String database) |
SyncJobHandler(SyncJobHandler.SourceType sourceType,
Map<String,String> cdcSourceConfig,
String database,
String table) |
Modifier and Type | Method and Description |
---|---|
void |
checkRequiredOption() |
MessageQueueSchemaUtils.ConsumerWrapper |
provideConsumer() |
DataFormat |
provideDataFormat() |
String |
provideDefaultJobName() |
CdcMetadataConverter |
provideMetadataConverter(String column) |
org.apache.flink.api.common.functions.FlatMapFunction<CdcSourceRecord,RichCdcMultiplexRecord> |
provideRecordParser(List<ComputedColumn> computedColumns,
TypeMapping typeMapping,
CdcMetadataConverter[] metadataConverters) |
org.apache.flink.api.connector.source.Source<CdcSourceRecord,?,?> |
provideSource() |
String |
provideSourceName() |
void |
registerJdbcDriver() |
public SyncJobHandler(SyncJobHandler.SourceType sourceType, Map<String,String> cdcSourceConfig, String database)
public String provideSourceName()
public String provideDefaultJobName()
public void registerJdbcDriver()
public void checkRequiredOption()
public org.apache.flink.api.connector.source.Source<CdcSourceRecord,?,?> provideSource()
public org.apache.flink.api.common.functions.FlatMapFunction<CdcSourceRecord,RichCdcMultiplexRecord> provideRecordParser(List<ComputedColumn> computedColumns, TypeMapping typeMapping, CdcMetadataConverter[] metadataConverters)
public DataFormat provideDataFormat()
public MessageQueueSchemaUtils.ConsumerWrapper provideConsumer()
public CdcMetadataConverter provideMetadataConverter(String column)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.