eaglewatcherwb commented on a change in pull request #7436: [FLINK-11071][core] 
add support for dynamic proxy classes resolution …
URL: https://github.com/apache/flink/pull/7436#discussion_r246621028
 
 

 ##########
 File path: 
flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/socket/SocketWindowWordCount.java
 ##########
 @@ -65,33 +70,47 @@ public static void main(String[] args) throws Exception {
                DataStream<String> text = env.socketTextStream(hostname, port, 
"\n");
 
                // parse the data, group it, window it, and aggregate the counts
-               DataStream<WordWithCount> windowCounts = text
-
-                               .flatMap(new FlatMapFunction<String, 
WordWithCount>() {
+               DataStream<WordWithCount> windowCounts = 
text.flatMap(serializableProxy(
 
 Review comment:
   Good comment, original case should be retained. I will add another case.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to