StefanRRichter commented on a change in pull request #8611: 
[FLINK-12693][state] Store state per key-group in CopyOnWriteStateTable
URL: https://github.com/apache/flink/pull/8611#discussion_r298967055
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/StateTable.java
 ##########
 @@ -56,6 +65,16 @@
         */
        protected final TypeSerializer<K> keySerializer;
 
+       /**
+        * The offset to the contiguous key groups.
+        */
+       protected final int keyGroupOffset;
+
+       /**
+        * Map for holding the actual state objects. The outer array represents 
the key-groups.
+        */
+       protected final StateMap<K, N, S>[] state;
 
 Review comment:
   Maybe you could use a bit more decriptive name like `stateMapsByKeyGroup` or 
`keyGroupedStateMaps`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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