WIP
authorKai Moritz <kai@juplo.de>
Wed, 13 Oct 2021 20:38:42 +0000 (22:38 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 13 Oct 2021 20:38:42 +0000 (22:38 +0200)
src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java

index 2386afe..991f704 100644 (file)
@@ -53,7 +53,7 @@ public class CounterStreamProcessor
                                .map((username, word) ->
                                                new KeyValue<>(
                                                                Key.newBuilder().setUsername(username).setWord(word).build(),
-                                                               word))
+                                                               0l))
                                .groupByKey()
                                .count()
                                .toStream()