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

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraph.java
 ##########
 @@ -590,17 +626,30 @@ public void setBufferTimeout(Integer vertexID, long 
bufferTimeout) {
 
        public void setSerializers(Integer vertexID, TypeSerializer<?> in1, 
TypeSerializer<?> in2, TypeSerializer<?> out) {
                StreamNode vertex = getStreamNode(vertexID);
-               vertex.setSerializerIn1(in1);
-               vertex.setSerializerIn2(in2);
+               vertex.setSerializersIn(in1, in2);
+               vertex.setSerializerOut(out);
+       }
+
+       private <OUT> void setSerializers(
+                       Integer vertexID,
+                       List<TypeInformation<?>> inTypeInfos,
+                       TypeSerializer<OUT> out) {
+
+               StreamNode vertex = getStreamNode(vertexID);
+
+               vertex.setSerializersIn(
+                       inTypeInfos.stream()
+                               .map(typeInfo -> 
typeInfo.createSerializer(executionConfig))
+                               .toArray(size -> new TypeSerializer<?>[size]));
 
 Review comment:
   TypeSerializer[]::new not working?

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