T - CDC change event typepublic class CdcParsingProcessFunction<T> extends org.apache.flink.streaming.api.functions.ProcessFunction<T,CdcRecord>
ProcessFunction to parse CDC change event to either a list of DataFields or
CdcRecord and send them to different downstreams.
This ProcessFunction can only handle records for a single constant table. To handle
records for different tables, see CdcMultiTableParsingProcessFunction.
| Modifier and Type | Field and Description |
|---|---|
static org.apache.flink.util.OutputTag<List<DataField>> |
NEW_DATA_FIELD_LIST_OUTPUT_TAG |
| Constructor and Description |
|---|
CdcParsingProcessFunction(EventParser.Factory<T> parserFactory) |
| Modifier and Type | Method and Description |
|---|---|
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<CdcRecord> collector) |
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContextpublic CdcParsingProcessFunction(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.AbstractRichFunctionExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.