public abstract class SyncDatabaseActionBase extends SynchronizationActionBase
Action
for synchronizing into one Paimon database.Modifier and Type | Field and Description |
---|---|
protected String |
excludingTables |
protected String |
includingTables |
protected boolean |
mergeShards |
protected MultiTablesSinkMode |
mode |
protected Map<String,List<String>> |
partitionKeyMultiple |
protected List<String> |
partitionKeys |
protected List<String> |
primaryKeys |
protected String |
tablePrefix |
protected List<FileStoreTable> |
tables |
protected String |
tableSuffix |
allowUpperCase, cdcSourceConfig, database, metadataConverters, syncJobHandler, tableConfig, typeMapping
batchTEnv, catalog, catalogName, catalogOptions, env, flinkCatalog
Constructor and Description |
---|
SyncDatabaseActionBase(String warehouse,
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 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 includingTables(@Nullable String includingTables)
public SyncDatabaseActionBase excludingTables(@Nullable String excludingTables)
public SyncDatabaseActionBase withPartitionKeys(String... partitionKeys)
public SyncDatabaseActionBase withPrimaryKeys(String... primaryKeys)
protected void validateCaseSensitivity()
validateCaseSensitivity
in class SynchronizationActionBase
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–2024 The Apache Software Foundation. All rights reserved.