Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by tom yang for Is the flink MapState's TTL for the whole MapState instance or for each element in the MapState

Yes, flink supports ttl per entry.

State Time-To-Live (TTL)A time-to-live (TTL) can be assigned to the keyed state of any type. If a TTL is ? configured and a state value has expired, the stored value will be cleaned up on a best effort basis which is discussed in more detail below.

All state collection types support per-entry TTLs. This means that list elements and map entries expire independently.

https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/state/state.html#state-time-to-live-ttl


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>