我想使用早期触发逻辑进行窗口聚合(您可以认为聚合是由窗口关闭或特定事件触发的),我在文档上阅读:https://ci.apache。 org/projects/flink/flink-docs-release-1.12/dev/stream/operators/windows.html#incremental-window-aggregation-with-aggregatefunction
该文档提到Note that using ProcessWindowFunction for simple aggregates such as count is quite inefficient.
了这一点,因此建议与增量窗口聚合配对。
我的问题是文档中的AverageAggregate,状态没有保存在任何地方,所以如果应用程序崩溃,averageAggregate 会丢失所有中间值,对吗?
那么如果是这样的话,有没有办法做一个窗口聚合,仍然支持增量聚合,并且有一个状态后端从崩溃中恢复?