klion26 commented on issue #6558: [FLINK-9116] Introduce getAll and removeAll 
for MapState
URL: https://github.com/apache/flink/pull/6558#issuecomment-414117596
 
 
   Hi, @StefanRRichter If I use a field to store the user map in Heap backend, 
I will override the `AbstractHeapState#clear` to update the field, so I'll 
change `public final void clear()` in AbstractHeapState to `public void 
clear()` , and change the `getUserMap` in Heap backend such as `if (userMaps == 
null) {
                        userMaps = stateTable.get(currentNamespace);
                } else if (stateTable.keyContext.getCurrentKey() != currentKey) 
{
                        userMaps = stateTable.get(currentNamespace);
                        currentKey = stateTable.keyContext.getCurrentKey();
                }
                return userMaps;` is this ok?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to