counter: 1.2.2. - Simplified topology - better readability
[demos/kafka/wordcount] / src / main / java / de / juplo / kafka / wordcount / counter / CounterStreamProcessor.java
index bccb253..4cc0c68 100644 (file)
@@ -63,7 +63,7 @@ public class CounterStreamProcessor
                                                                .noTypeInfo()))
                                .count(Materialized.as(storeSupplier))
                                .toStream()
-                               .map((word, count) -> new KeyValue<>(word, WordCount.of(word.getUser(), word.getWord(), count)))
+                               .map((word, count) -> new KeyValue<>(word, WordCount.of(word, count)))
                                .to(
                                                outputTopic,
                                                Produced.with(