public abstract class MessageQueueSyncTableActionBase extends SyncTableActionBase
Action for synchronizing one message queue topic into one Paimon table.
If the specified Paimon table does not exist, this action will automatically create the table. Its schema will be derived from all specified topics. If the Paimon table already exists, its schema will be compared against the schema of all specified topics.
This action supports a limited number of schema changes. Unsupported schema changes will be ignored. Currently supported schema changes includes:
SyncTableActionBase.SchemaRetrievalExceptioncomputedColumnArgs, computedColumns, fileStoreTable, partitionKeys, primaryKeys, tableallowUpperCase, cdcSourceConfig, database, metadataConverters, syncJobHandler, tableConfig, typeMappingbatchTEnv, catalog, catalogName, catalogOptions, env, flinkCatalog| Constructor and Description |
|---|
MessageQueueSyncTableActionBase(String warehouse,
String database,
String table,
Map<String,String> catalogConfig,
Map<String,String> mqConfig,
SyncJobHandler.SourceType sourceType) |
| Modifier and Type | Method and Description |
|---|---|
protected Schema |
buildPaimonSchema(Schema retrievedSchema) |
protected CdcTimestampExtractor |
createCdcTimestampExtractor() |
protected Schema |
retrieveSchema() |
beforeBuildingSourceSink, buildEventParserFactory, buildSink, fileStoreTable, recordParse, validateCaseSensitivity, withComputedColumnArgs, withPartitionKeys, withPartitionKeys, withPrimaryKeys, withPrimaryKeysalterTableOptions, build, buildSource, run, tableConfig, withMetadataColumns, withTableConfig, withTypeMappingcatalogConfig, catalogLoader, compatibleCheck, execute, initFlinkCatalog, initFlinkEnv, initPaimonCatalog, toPaimonTypes, withStreamExecutionEnvironmentprotected Schema retrieveSchema() throws Exception
retrieveSchema in class SyncTableActionBaseExceptionprotected CdcTimestampExtractor createCdcTimestampExtractor()
createCdcTimestampExtractor in class SynchronizationActionBaseprotected Schema buildPaimonSchema(Schema retrievedSchema)
buildPaimonSchema in class SyncTableActionBaseCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.