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.
dbPrefix, dbSuffix, excludingDbs, excludingTables, includingDbs, includingTables, mergeShards, mode, partitionKeyMultiple, partitionKeys, primaryKeys, tableMapping, tablePrefix, tables, tableSuffix
caseSensitive, cdcSourceConfig, database, metadataConverters, syncJobHandler, tableConfig, typeMapping
batchTEnv, catalog, catalogName, catalogOptions, env, flinkCatalog
Constructor and Description |
---|
MongoDBSyncDatabaseAction(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, excludingDbs, excludingTables, includingDbs, includingTables, mergeShards, recordParse, withDbPrefix, withDbSuffix, withMode, withPartitionKeyMultiple, withPartitionKeys, withPrimaryKeys, withTableMapping, 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.