Re: Timers and state
Posted by
Xingcan Cui on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Timers-and-state-tp18683p18684.html
Hi Alberto,
an ultimate solution for your problem would be a map state with ordered keys (like a TreeMap), but unfortunately, this is still a WIP feature.
For now, maybe you could "eagerly removeā the outdated value (with `iterator.remove()`) when iterating the map state in the process function or split the key space for your map state into static bins, thus you could calculate a set of outdated keys before removing them.
Hope that helps.
Best,
Xingcan