· MapState 的 TTL 是基于 UK 级别的 · ValueState 的 TTL 是基于整个 key 的
● Heap State 场景,两者性能类似。 TTL: MapState的TTL是基于UK的 ( KV 键值对都会存储各自的时间戳) MapState的TTL是基于key的. State需要存什么数据 ValueState 会存储 key、namespace、value。 / *@param<K> The type of the key. *@param<N> The type of the namespace. *@param<SV> The type ...