public abstract class SyncDatabaseActionBase extends SynchronizationActionBase
Action
for synchronizing into one Paimon database.Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
dbPrefix |
protected Map<String,String> |
dbSuffix |
protected String |
excludingDbs |
protected String |
excludingTables |
protected String |
includingDbs |
protected String |
includingTables |
protected boolean |
mergeShards |
protected MultiTablesSinkMode |
mode |
protected Map<String,List<String>> |
partitionKeyMultiple |
protected List<String> |
partitionKeys |
protected List<String> |
primaryKeys |
protected Map<String,String> |
tableMapping |
protected String |
tablePrefix |
protected List<FileStoreTable> |
tables |
protected String |
tableSuffix |
caseSensitive, cdcSourceConfig, database, metadataConverters, syncJobHandler, tableConfig, typeMapping
batchTEnv, catalog, catalogName, catalogOptions, env, flinkCatalog
Constructor and Description |
---|
SyncDatabaseActionBase(String database,
Map<String,String> catalogConfig,
Map<String,String> cdcSourceConfig,
SyncJobHandler.SourceType sourceType) |
alterTableOptions, beforeBuildingSourceSink, build, buildSource, createCdcTimestampExtractor, run, tableConfig, validateRuntimeExecutionMode, withMetadataColumns, withTableConfig, withTypeMapping
catalogConfig, catalogLoader, compatibleCheck, execute, initFlinkCatalog, initFlinkEnv, initPaimonCatalog, toPaimonTypes, withStreamExecutionEnvironment
protected boolean mergeShards
protected MultiTablesSinkMode mode
protected String tablePrefix
protected String tableSuffix
protected String includingTables
protected String includingDbs
protected List<FileStoreTable> tables
public SyncDatabaseActionBase mergeShards(boolean mergeShards)
public SyncDatabaseActionBase withMode(MultiTablesSinkMode mode)
public SyncDatabaseActionBase withTablePrefix(@Nullable String tablePrefix)
public SyncDatabaseActionBase withTableSuffix(@Nullable String tableSuffix)
public SyncDatabaseActionBase withDbPrefix(Map<String,String> dbPrefix)
public SyncDatabaseActionBase withDbSuffix(Map<String,String> dbSuffix)
public SyncDatabaseActionBase withTableMapping(Map<String,String> tableMapping)
public SyncDatabaseActionBase includingTables(@Nullable String includingTables)
public SyncDatabaseActionBase excludingTables(@Nullable String excludingTables)
public SyncDatabaseActionBase includingDbs(@Nullable String includingDbs)
public SyncDatabaseActionBase excludingDbs(@Nullable String excludingDbs)
public SyncDatabaseActionBase withPartitionKeys(String... partitionKeys)
public SyncDatabaseActionBase withPrimaryKeys(String... primaryKeys)
protected org.apache.flink.api.common.functions.FlatMapFunction<CdcSourceRecord,RichCdcMultiplexRecord> recordParse()
recordParse
in class SynchronizationActionBase
public SyncDatabaseActionBase withPartitionKeyMultiple(Map<String,List<String>> partitionKeyMultiple)
protected EventParser.Factory<RichCdcMultiplexRecord> buildEventParserFactory()
buildEventParserFactory
in class SynchronizationActionBase
protected abstract boolean requirePrimaryKeys()
protected void buildSink(org.apache.flink.streaming.api.datastream.DataStream<RichCdcMultiplexRecord> input, EventParser.Factory<RichCdcMultiplexRecord> parserFactory)
buildSink
in class SynchronizationActionBase
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.