【发布时间】:2020-04-16 11:47:41
【问题描述】:
我有一个运行多个模型的 flink 管道,所以窗口看起来像这样:
DataStream<WindowDeviationResult> aggregatedWindow = keyedStream
.timeWindow(Time.seconds(window_duration))
.aggregate( model.getWindowAgreggator(),
model.getWindowProcessor());
我需要将来自另一个流的状态发送到 ProcessWindowFunction 运算符(最后一个)。通常,我会在之前进行连接,然后实现 proceessElement 和 processBroadcastElement。但是因为我将 WindowProcessFuction 传递给 .aggregate 作为第二个参数,所以我不能这样做。您在这里看到哪些选项?
【问题讨论】:
标签: java stream apache-flink flink-streaming