Class ExistingTableSchemaExpander
- java.lang.Object
-
- org.apache.flink.cdc.runtime.operators.schema.common.ExistingTableSchemaExpander
-
@Internal public class ExistingTableSchemaExpander extends Object
Handles the initialCreateTableEventfor an existing target table according to the configuredExistingTableSchemaExpansionMode.
-
-
Constructor Summary
Constructors Constructor Description ExistingTableSchemaExpander(MetadataApplier metadataApplier, ExistingTableSchemaExpansionSupport expansionSupport, SchemaChangeBehavior schemaChangeBehavior)ExistingTableSchemaExpander(MetadataApplier metadataApplier, ExistingTableSchemaExpansionSupport expansionSupport, SchemaChangeBehavior schemaChangeBehavior, ExistingTableSchemaExpansionMode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleExistingTableCreation(CreateTableEvent createTableEvent)Handles the initialCreateTableEventfor an existing target table.
-
-
-
Constructor Detail
-
ExistingTableSchemaExpander
public ExistingTableSchemaExpander(MetadataApplier metadataApplier, ExistingTableSchemaExpansionSupport expansionSupport, SchemaChangeBehavior schemaChangeBehavior)
-
ExistingTableSchemaExpander
public ExistingTableSchemaExpander(MetadataApplier metadataApplier, ExistingTableSchemaExpansionSupport expansionSupport, SchemaChangeBehavior schemaChangeBehavior, ExistingTableSchemaExpansionMode mode)
-
-
Method Detail
-
handleExistingTableCreation
public boolean handleExistingTableCreation(CreateTableEvent createTableEvent)
Handles the initialCreateTableEventfor an existing target table.This is a two-phase contract: the expander first tries to check/expand the existing target table, then signals whether the sink should still apply the original
CreateTableEvent.- Returns:
trueif the caller should proceed to apply the originalCreateTableEventto the sink;falsemeans the framework has fully handled this event and the originalCreateTableEventmust not be applied.CHECKmode returnsfalseafter a successful check so that no external DDL is issued by the pipeline.
-
-