guoweiM commented on a change in pull request #17:
URL: https://github.com/apache/flink-ml/pull/17#discussion_r740039154
##########
File path:
flink-ml-iteration/src/main/java/org/apache/flink/iteration/operator/ReplayOperator.java
##########
@@ -139,6 +142,22 @@ public void
processElement(StreamRecord<IterationRecord<T>> element) throws Exce
}
}
+ @Override
+ public void processElement2(StreamRecord<IterationRecord<Void>> element)
throws Exception {
+ if (element.getValue().getType() ==
IterationRecord.Type.EPOCH_WATERMARK) {
+ progressTracker.onEpochWatermark(
+ 1, element.getValue().getSender(),
element.getValue().getEpoch());
+ } else {
+ throw new UnsupportedOperationException(
+ "Not supported element type: " + element.getValue());
+ }
+ }
+
+ @Override
+ public void endInput(int i) throws Exception {
+ progressTracker.finish(i - 1);
Review comment:
Would you mind add some comments for this?
--
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]