Class IcebergMetadataApplier
- java.lang.Object
-
- org.apache.flink.cdc.connectors.iceberg.sink.IcebergMetadataApplier
-
- All Implemented Interfaces:
Serializable,AutoCloseable,MetadataApplier
public class IcebergMetadataApplier extends Object implements MetadataApplier
AMetadataApplierfor Apache Iceberg.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IcebergMetadataApplier(Map<String,String> catalogOptions)IcebergMetadataApplier(Map<String,String> catalogOptions, Map<String,String> tableOptions, Map<TableId,List<String>> partitionMaps)IcebergMetadataApplier(Map<String,String> catalogOptions, Map<String,String> tableOptions, Map<TableId,List<String>> partitionMaps, Map<String,String> hadoopConfOptions)
-
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.voidclose()Closes the metadata applier and its underlying resources.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
getExistingTableSchemaExpansionSupport
-
-
-
-
Method Detail
-
applySchemaChange
public void applySchemaChange(SchemaChangeEvent schemaChangeEvent) throws SchemaEvolveException
Description copied from interface:MetadataApplierApply the givenSchemaChangeEventto external systems.- Specified by:
applySchemaChangein interfaceMetadataApplier- Throws:
SchemaEvolveException
-
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
-
close
public void close()
Description copied from interface:MetadataApplierCloses the metadata applier and its underlying resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMetadataApplier
-
-