Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/896#discussion_r34547538
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/api/common/functions/RuntimeContext.java
 ---
    @@ -101,9 +101,9 @@
     
        /**
         * For system internal usage only. Use getAccumulator(...) to obtain a
    -    * accumulator. Use this as read-only.
    +    * accumulator. The returned map must NOT be modified.
         */
    -   HashMap<String, Accumulator<?, ?>> getAllAccumulators();
    +   Map<String, Accumulator<?, ?>> getAllAccumulators();
    --- End diff --
    
    No, this is a user-facing to get the Accumulator map in the RichFunction. I 
changed the return type to Map and I'm returning a Collections.immutableMap to 
prevent modifications. I think it makes sense that the user can get a list of 
registered accumulators and their current status (e.g. in chained operators).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to