Github user manuzhang commented on a diff in the pull request:
https://github.com/apache/incubator-gearpump/pull/131#discussion_r95946766
--- Diff:
examples/streaming/wordcount-java/src/main/java/org/apache/gearpump/streaming/examples/wordcountjava/dsl/WordCount.java
---
@@ -46,15 +51,13 @@ public static void main(Config akkaConf, String[] args)
throws InterruptedExcept
JavaStream<String> sentence = app.source(new StringSource("This is a
good start, bingo!! bingo!!"),
1, UserConfig.empty(), "source");
- JavaStream<String> words = sentence.flatMap(s ->
Arrays.asList(s.split("\\s+")).iterator(),
- "flatMap");
+ JavaStream<String> words = sentence.flatMap(new Split(), "flatMap");
- JavaStream<Tuple2<String, Integer>> ones = words.map(s -> new
Tuple2<>(s, 1), "map");
+ JavaStream<Tuple2<String, Integer>> ones = words.map(new Ones(),
"map");
--- End diff --
With the addition of `setup` and `teardown` methods, Java 8 lambda
functions no longer work.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---