From 7a6a140d2c3794928fb08959d8b94b42535a34ee Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 13 Oct 2021 22:38:42 +0200 Subject: [PATCH] WIP --- .../juplo/kafka/wordcount/counter/CounterStreamProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java b/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java index 2386afe..991f704 100644 --- a/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java +++ b/src/main/java/de/juplo/kafka/wordcount/counter/CounterStreamProcessor.java @@ -53,7 +53,7 @@ public class CounterStreamProcessor .map((username, word) -> new KeyValue<>( Key.newBuilder().setUsername(username).setWord(word).build(), - word)) + 0l)) .groupByKey() .count() .toStream() -- 2.20.1