You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2018/02/06 21:29:01 UTC
[jira] [Closed] (FLINK-8550) Iterate over entryset instead of keys
[ https://issues.apache.org/jira/browse/FLINK-8550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chesnay Schepler closed FLINK-8550.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
master: 5e41eaab9c9feff743ca79ddbee11704ceaa2b2d
> Iterate over entryset instead of keys
> -------------------------------------
>
> Key: FLINK-8550
> URL: https://issues.apache.org/jira/browse/FLINK-8550
> Project: Flink
> Issue Type: Improvement
> Components: Table API & SQL
> Reporter: Hequn Cheng
> Assignee: Hequn Cheng
> Priority: Major
> Fix For: 1.5.0
>
>
> Iterate over entrysets instead of keys when we want to get both key and value.
> For example, in \{{ProcTimeBoundedRangeOver}}:
> {code:java}
> // code placeholder
> val iter = rowMapState.keys.iterator
> val markToRemove = new ArrayList[Long]()
> while (iter.hasNext) {
> val elementKey = iter.next
> if (elementKey < limit) {
> ...
> val elementsRemove = rowMapState.get(elementKey)
> ...
> }
> }
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)