weibozhao commented on code in PR #83:
URL: https://github.com/apache/flink-ml/pull/83#discussion_r869977839


##########
flink-ml-core/src/main/java/org/apache/flink/ml/common/datastream/DataStreamUtils.java:
##########
@@ -182,4 +191,49 @@ public void snapshotState(StateSnapshotContext context) 
throws Exception {
             }
         }
     }
+
+    /**
+     * An operator that splits a global batch into evenly-sized local batches, 
and distributes them
+     * to downstream operator.
+     *
+     * @param <T> Data type of batch data.
+     */
+    public static class GlobalBatchSplitter<T> implements FlatMapFunction<T[], 
T[]> {

Review Comment:
   I think one function is better. I will refine it.



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