在键控流程函数或窗口流中映射状态生命周期

发布于 2025-01-20 13:54:25 字数 60 浏览 3 评论 0原文

窗口到期后还是在调用该特定键的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

擦肩而过的背影 2025-01-27 13:54:25

您自己注册的任何状态且未定义的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文