在键控流程函数或窗口流中映射状态生命周期
窗口到期后还是在调用该特定键的Ontimer函数后自动清除MapState内容,或者必须手动清除ttl配置
Is MapState content automatically cleared up after the window expires or when onTimer function for that particular key is called or it has to be manually cleared given a TTL config is not defined
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您自己注册的任何状态且未定义的TTL定义。
Flink的内置窗口会自动清洁,但是您在不再有用时需要手动清除MapState在KeyedProcessfunction中实现自己的窗口。
Any state you register yourself and that doesn't have TTL defined will be retained indefinitely.
Flink's built-in windows are cleaned up automatically, but windows you implement yourself in a KeyedProcessFunction using MapState need to be manually cleared when they are no longer useful.