Fanoid commented on code in PR #191:
URL: https://github.com/apache/flink-ml/pull/191#discussion_r1050566402


##########
flink-ml-core/src/main/java/org/apache/flink/ml/common/datastream/DataStreamUtils.java:
##########
@@ -133,6 +135,15 @@ public static <T> DataStream<T> reduce(DataStream<T> 
input, ReduceFunction<T> fu
         }
     }
 
+    public static <T, K> DataStream<T> reduce(KeyedStream<T, K> input, 
ReduceFunction<T> func) {

Review Comment:
   I've confirmed `BatchGroupedReduceOperator` works well in streaming mode. 
However, in case of unexpected changes of its implementation, I made a copy of 
this class in `DataStreamUtils`, named `KeyedReduceOperator`.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to