rkhachatryan commented on a change in pull request #11098: [FLINK-16060][task] 
Implement working StreamMultipleInputProcessor
URL: https://github.com/apache/flink/pull/11098#discussion_r380654321
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraph.java
 ##########
 @@ -330,6 +332,34 @@ public boolean isIterative() {
                }
        }
 
+       public <OUT> void addMultipleInputOperator(
+                       Integer vertexID,
+                       String slotSharingGroup,
+                       @Nullable String coLocationGroup,
+                       StreamOperatorFactory<OUT> operatorFactory,
+                       List<TypeInformation<?>> inTypeInfos,
+                       TypeInformation<OUT> outTypeInfo,
+                       String operatorName) {
+
+               Class<? extends AbstractInvokable> vertexClass = 
MultipleInputStreamTask.class;
+
+               addNode(vertexID, slotSharingGroup, coLocationGroup, 
vertexClass, operatorFactory, operatorName);
+
+               TypeSerializer<OUT> outSerializer = (outTypeInfo != null) && 
!(outTypeInfo instanceof MissingTypeInfo) ?
+                       outTypeInfo.createSerializer(executionConfig) : null;
+
 
 Review comment:
   nit: extract method (repeated 4 times)?

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

Reply via email to