public class MultiTableUpdatedDataFieldsProcessFunction extends UpdatedDataFieldsProcessFunctionBase<org.apache.flink.api.java.tuple.Tuple2<Identifier,List<DataField>>,Void>
ProcessFunction
to handle schema changes. New schema is represented by a list of DataField
s.
NOTE: To avoid concurrent schema changes, the parallelism of this ProcessFunction
must
be 1.
UpdatedDataFieldsProcessFunctionBase.ConvertAction
catalog, catalogLoader
Constructor and Description |
---|
MultiTableUpdatedDataFieldsProcessFunction(Catalog.Loader catalogLoader) |
Modifier and Type | Method and Description |
---|---|
void |
processElement(org.apache.flink.api.java.tuple.Tuple2<Identifier,List<DataField>> updatedDataFields,
org.apache.flink.streaming.api.functions.ProcessFunction.Context context,
org.apache.flink.util.Collector<Void> collector) |
applySchemaChange, canConvert, close, extractSchemaChanges, open
getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
public MultiTableUpdatedDataFieldsProcessFunction(Catalog.Loader catalogLoader)
public void processElement(org.apache.flink.api.java.tuple.Tuple2<Identifier,List<DataField>> updatedDataFields, org.apache.flink.streaming.api.functions.ProcessFunction.Context context, org.apache.flink.util.Collector<Void> collector) throws Exception
processElement
in class org.apache.flink.streaming.api.functions.ProcessFunction<org.apache.flink.api.java.tuple.Tuple2<Identifier,List<DataField>>,Void>
Exception
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.