Class HudiMetadataApplier
- java.lang.Object
-
- org.apache.flink.cdc.connectors.hudi.sink.HudiMetadataApplier
-
- All Implemented Interfaces:
Serializable,AutoCloseable,MetadataApplier
public class HudiMetadataApplier extends Object implements MetadataApplier
AMetadataApplierthat applies schema changes to Hudi tables.This applier is responsible for initializing the Hudi table metadata in the file system if it does not already exist.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HudiMetadataApplier(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplySchemaChange(SchemaChangeEvent schemaChangeEvent)Apply the givenSchemaChangeEventto external systems.voidclose()Closes the metadata applier and its underlying resources.-
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
acceptsSchemaEvolutionType, getExistingTableSchemaExpansionSupport, getSupportedSchemaEvolutionTypes, setAcceptedSchemaEvolutionTypes
-
-
-
-
Constructor Detail
-
HudiMetadataApplier
public HudiMetadataApplier(Configuration config)
-
-
Method Detail
-
applySchemaChange
public void applySchemaChange(SchemaChangeEvent schemaChangeEvent)
Description copied from interface:MetadataApplierApply the givenSchemaChangeEventto external systems.- Specified by:
applySchemaChangein interfaceMetadataApplier
-
close
public void close() throws ExceptionDescription copied from interface:MetadataApplierCloses the metadata applier and its underlying resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMetadataApplier- Throws:
Exception
-
-