Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/5308#discussion_r163869963
--- Diff:
flink-core/src/main/java/org/apache/flink/api/common/accumulators/AccumulatorHelper.java
---
@@ -173,4 +173,23 @@ public static String getResultsFormatted(Map<String,
Object> map) {
return accumulators;
}
+ /**
+ * Serializes the given accumulators.
+ *
+ * @param accumulators to serialize
+ * @return Map of serialized accumulators
+ * @throws IOException if an accumulator could not be serialized
+ */
+ public static Map<String, SerializedValue<Object>>
serializeAccumulators(Map<String, Accumulator<?, ?>> accumulators) throws
IOException {
--- End diff --
True, will remove it.
---