counter: 1.4.0 - Refined output JSON to match the new general stats-format
[demos/kafka/wordcount] / src / main / java / de / juplo / kafka / wordcount / counter / WordCounter.java
index f1fce71..211fa4c 100644 (file)
@@ -12,11 +12,11 @@ import lombok.NoArgsConstructor;
 public class WordCounter
 {
   String user;
-  String word;
+  String key;
   long counter;
 
   public static WordCounter of(Word word, long counter)
   {
-    return new WordCounter(word.getUser(), word.getWord(), counter);
+    return new WordCounter(word.getChannel(), word.getKey(), counter);
   }
 }