StefanRRichter commented on a change in pull request #6558: [FLINK-9116] 
Introduce getAll and removeAll for MapState
URL: https://github.com/apache/flink/pull/6558#discussion_r210507581
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/HeapMapState.java
 ##########
 @@ -91,6 +93,22 @@ public UV get(UK userKey) {
                return userMap.get(userKey);
        }
 
+       @Override
+       public Map<UK, UV> getAll(Collection<UK> keys) {
+
+               Map<UK, UV> userMap = stateTable.get(currentNamespace);
+
+               if (userMap == null) {
+                       return Collections.emptyMap();
+               }
+
+               Map<UK, UV> maps = new HashMap<>();
 
 Review comment:
   Can also be initialized with capacity `keys.size()`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to