public class MongoDBSyncDatabaseAction extends SyncDatabaseActionBase
This class provides functionality to read data from a MongoDB source, process it, and then synchronize it with a target system. It supports various configurations, including table prefixes, suffixes, and inclusion/exclusion patterns.
Key features include:
Note: This action is primarily intended for use in Flink streaming applications that synchronize MongoDB data with other systems.
excludingTables, includingTables, mergeShards, mode, partitionKeyMultiple, partitionKeys, primaryKeys, tablePrefix, tables, tableSuffix
allowUpperCase, cdcSourceConfig, database, metadataConverters, syncJobHandler, tableConfig, typeMapping
batchTEnv, catalog, catalogName, catalogOptions, env, flinkCatalog
Constructor and Description |
---|
MongoDBSyncDatabaseAction(String warehouse,
String database,
Map<String,String> catalogConfig,
Map<String,String> mongodbConfig) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.flink.cdc.connectors.mongodb.source.MongoDBSource<CdcSourceRecord> |
buildSource() |
protected CdcTimestampExtractor |
createCdcTimestampExtractor() |
protected boolean |
requirePrimaryKeys() |
buildEventParserFactory, buildSink, excludingTables, includingTables, mergeShards, recordParse, validateCaseSensitivity, withMode, withPartitionKeyMultiple, withPartitionKeys, withPrimaryKeys, withTablePrefix, withTableSuffix
alterTableOptions, beforeBuildingSourceSink, build, run, tableConfig, validateRuntimeExecutionMode, withMetadataColumns, withTableConfig, withTypeMapping
catalogConfig, catalogLoader, compatibleCheck, execute, initFlinkCatalog, initFlinkEnv, initPaimonCatalog, toPaimonTypes, withStreamExecutionEnvironment
protected CdcTimestampExtractor createCdcTimestampExtractor()
createCdcTimestampExtractor
in class SynchronizationActionBase
protected org.apache.flink.cdc.connectors.mongodb.source.MongoDBSource<CdcSourceRecord> buildSource()
buildSource
in class SynchronizationActionBase
protected boolean requirePrimaryKeys()
requirePrimaryKeys
in class SyncDatabaseActionBase
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.