OlegZhukov 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_r246564637
##########
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:
I don't think the example should be changed. Using proxies in operators is a
pretty advanced use case, while the example should focus on basic usage.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services