WIP
authorKai Moritz <kai@juplo.de>
Tue, 25 Jun 2024 04:23:33 +0000 (06:23 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 25 Jun 2024 04:23:33 +0000 (06:23 +0200)
src/main/java/de/juplo/kafka/wordcount/stats/Key.java
src/main/java/de/juplo/kafka/wordcount/stats/StatisticsType.java [new file with mode: 0644]

index ab88ee6..afe1514 100644 (file)
@@ -6,6 +6,6 @@ import lombok.Data;
 @Data
 public class Key
 {
-  private String type;
+  private StatisticsType type;
   private String channel;
 }
diff --git a/src/main/java/de/juplo/kafka/wordcount/stats/StatisticsType.java b/src/main/java/de/juplo/kafka/wordcount/stats/StatisticsType.java
new file mode 100644 (file)
index 0000000..c8f6e09
--- /dev/null
@@ -0,0 +1,7 @@
+package de.juplo.kafka.wordcount.stats;
+
+public enum StatisticsType
+{
+  POPULAR,
+  SPEAKERS
+}