For AI agents: the complete documentation index is available at /docs/llms.txt, the full documentation bundle is available at /docs/llms-full.txt, and this page is available as Markdown at /docs/interview/flink/practice/group/index.md.
  • 简体中文
  • 2026
  • 人群圈选

    去重

    涉及到去重时计算 UV,Flink 不像离线计算那样高效,它需要在状态中缓存大量数据进行去重,长周期、大数据量下去重耗费资源过多。

    现有 Flink 去重方式有如下几种:

    • HashMap/Set或MapState。将数据存入 HashMap/Set 或 MapState 中
    • HyperLogLog
    • BitMap

    参考资料