Class KafkaMetaDataApplier
- java.lang.Object
-
- org.apache.flink.cdc.connectors.kafka.sink.KafkaMetaDataApplier
-
- All Implemented Interfaces:
Serializable,AutoCloseable,MetadataApplier
public class KafkaMetaDataApplier extends Object implements MetadataApplier
SupportsKafkaDataSinkto schema evolution.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KafkaMetaDataApplier()
-
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
-
-
-
-
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)
Description copied from interface:MetadataApplierApply the givenSchemaChangeEventto external systems.- Specified by:
applySchemaChangein interfaceMetadataApplier
-
-