Amir Hossein Sharifzadeh
03/12/2023, 1:27 AMdefineWorkflow(
tableEnv,
customerStream,
transactionStream,
workflow -> workflow.sinkTo(new PrintSink<>()));
sinkTo, passes dataStream for print (PrintSink). Should I create a new class (i.e. DataProcessingSink implements Sink) and override createWriter method?Danny Cranmer
03/12/2023, 8:52 AMAmir Hossein Sharifzadeh
03/12/2023, 8:58 AMpublic class EMPADProcessor extends ProcessFunction<Row, Row> {
@Override
public void processElement(Row row, ProcessFunction<Row, Row>.Context context,
Collector<Row> collector) throws Exception {
// process row here...
}
}
where: tableEnv.toChangelogStream(resultTable).process(new EMPADProcessor());Danny Cranmer
03/12/2023, 9:18 AMDanny Cranmer
03/12/2023, 9:19 AM