Verbesserungen aus 'stored-offsets' nach 'stored-state' gemerged
[demos/kafka/training] / src / main / java / de / juplo / kafka / StatisticsDocument.java
index 2416253..415ef5c 100644 (file)
@@ -20,6 +20,12 @@ public class StatisticsDocument
   {
   }
 
+  public StatisticsDocument(Integer partition)
+  {
+    this.id = Integer.toString(partition);
+    this.statistics = new HashMap<>();
+  }
+
   public StatisticsDocument(Integer partition, Map<String, Long> statistics)
   {
     this.id = Integer.toString(partition);