rkhachatryan commented on a change in pull request #11098: [FLINK-16060][task]
Implement working StreamMultipleInputProcessor
URL: https://github.com/apache/flink/pull/11098#discussion_r384115214
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphGenerator.java
##########
@@ -735,6 +739,56 @@ public StreamGraph generate() {
return Collections.singleton(transform.getId());
}
+ private <OUT> Collection<Integer>
transformMultipleInputTransform(MultipleInputTransformation<OUT> transform) {
+ List<Collection<Integer>> allInputIds = new ArrayList<>();
+
+ for (Transformation<?> input : transform.getInputs()) {
+ allInputIds.add(transform(input));
+ }
+
+ // the recursive call might have already transformed this
+ if (alreadyTransformed.containsKey(transform)) {
+ return alreadyTransformed.get(transform);
+ }
+
Review comment:
Or maybe because of mutability of `Transformation`?
In either case, I wouldn't spend time on it because the only impact I see is
this confusion.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services