Class StarRocksMetadataApplier
- java.lang.Object
-
- org.apache.flink.cdc.connectors.starrocks.sink.StarRocksMetadataApplier
-
- All Implemented Interfaces:
Serializable,AutoCloseable,MetadataApplier
public class StarRocksMetadataApplier extends Object implements MetadataApplier
AMetadataApplierthat applies metadata changes to StarRocks.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StarRocksMetadataApplier(StarRocksEnrichedCatalog catalog, TableCreateConfig tableCreateConfig, SchemaChangeConfig schemaChangeConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsSchemaEvolutionType(SchemaChangeEventType schemaChangeEventType)Checks if this metadata applier should this event type.voidapplySchemaChange(SchemaChangeEvent schemaChangeEvent)Apply the givenSchemaChangeEventto external systems.Set<SchemaChangeEventType>getSupportedSchemaEvolutionTypes()Checks what kind of schema change events downstream can handle.MetadataAppliersetAcceptedSchemaEvolutionTypes(Set<SchemaChangeEventType> schemaEvolutionTypes)Sets enabled schema evolution event types of current metadata applier.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.cdc.common.sink.MetadataApplier
close, getExistingTableSchemaExpansionSupport
-
-
-
-
Constructor Detail
-
StarRocksMetadataApplier
public StarRocksMetadataApplier(StarRocksEnrichedCatalog catalog, TableCreateConfig tableCreateConfig, SchemaChangeConfig schemaChangeConfig)
-
-
Method Detail
-
setAcceptedSchemaEvolutionTypes
public MetadataApplier setAcceptedSchemaEvolutionTypes(Set<SchemaChangeEventType> schemaEvolutionTypes)
Description copied from interface:MetadataApplierSets enabled schema evolution event types of current metadata applier.- Specified by:
setAcceptedSchemaEvolutionTypesin interfaceMetadataApplier
-
acceptsSchemaEvolutionType
public boolean acceptsSchemaEvolutionType(SchemaChangeEventType schemaChangeEventType)
Description copied from interface:MetadataApplierChecks if this metadata applier should this event type.- Specified by:
acceptsSchemaEvolutionTypein interfaceMetadataApplier
-
getSupportedSchemaEvolutionTypes
public Set<SchemaChangeEventType> getSupportedSchemaEvolutionTypes()
Description copied from interface:MetadataApplierChecks what kind of schema change events downstream can handle.- Specified by:
getSupportedSchemaEvolutionTypesin interfaceMetadataApplier
-
applySchemaChange
public void applySchemaChange(SchemaChangeEvent schemaChangeEvent) throws SchemaEvolveException
Description copied from interface:MetadataApplierApply the givenSchemaChangeEventto external systems.- Specified by:
applySchemaChangein interfaceMetadataApplier- Throws:
SchemaEvolveException
-
-