You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Hequn Cheng (JIRA)" <ji...@apache.org> on 2018/02/02 09:21:00 UTC

[jira] [Created] (FLINK-8550) Iterate over entryset instead of keys

Hequn Cheng created FLINK-8550:
----------------------------------

             Summary: 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 &amp; SQL
            Reporter: Hequn Cheng
            Assignee: Hequn Cheng


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)