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 DataField
s 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)
Do not annotate with
@override here to maintain compatibility with Flink 2.0+. |
void |
open(OpenContext openContext)
Do not annotate with
@override here to maintain compatibility with Flink 1.18-. |
void |
processElement(T raw,
org.apache.flink.streaming.api.functions.ProcessFunction.Context context,
org.apache.flink.util.Collector<CdcRecord> collector) |
public CdcParsingProcessFunction(EventParser.Factory<T> parserFactory)
public void open(OpenContext openContext) throws Exception
@override
here to maintain compatibility with Flink 1.18-.Exception
public void open(org.apache.flink.configuration.Configuration parameters) throws Exception
@override
here to maintain compatibility with Flink 2.0+.open
in interface org.apache.flink.api.common.functions.RichFunction
open
in class org.apache.flink.api.common.functions.AbstractRichFunction
Exception
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.