T - CDC change event typepublic class CdcMultiTableParsingProcessFunction<T> extends org.apache.flink.streaming.api.functions.ProcessFunction<T,Void>
ProcessFunction to parse CDC change event to either a list of DataFields or
 CdcRecord and send them to different side outputs according to table name.
 This ProcessFunction can handle records for different tables at the same time.
| Constructor and Description | 
|---|
CdcMultiTableParsingProcessFunction(EventParser.Factory<T> parserFactory)  | 
| Modifier and Type | Method and Description | 
|---|---|
static org.apache.flink.util.OutputTag<CdcRecord> | 
createRecordOutputTag(String tableName)  | 
static org.apache.flink.util.OutputTag<List<DataField>> | 
createUpdatedDataFieldsOutputTag(String tableName)  | 
void | 
open(org.apache.flink.configuration.Configuration parameters)  | 
void | 
processElement(T raw,
              org.apache.flink.streaming.api.functions.ProcessFunction.Context context,
              org.apache.flink.util.Collector<Void> collector)  | 
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContextpublic CdcMultiTableParsingProcessFunction(EventParser.Factory<T> parserFactory)
public void open(org.apache.flink.configuration.Configuration parameters)
          throws Exception
open in interface org.apache.flink.api.common.functions.RichFunctionopen in class org.apache.flink.api.common.functions.AbstractRichFunctionExceptionpublic void processElement(T raw, org.apache.flink.streaming.api.functions.ProcessFunction.Context context, org.apache.flink.util.Collector<Void> collector) throws Exception
public static org.apache.flink.util.OutputTag<List<DataField>> createUpdatedDataFieldsOutputTag(String tableName)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.