WIP
[demos/kafka/training] / src / main / java / de / juplo / kafka / StateDocument.java
index 52968cd..2583c8e 100644 (file)
@@ -17,7 +17,6 @@ public class StateDocument
   public String id;
   public long offset = -1l;
   public Map<String, Long> state;
-  public Map<String, List<Long>> seen;
 
   public StateDocument()
   {
@@ -27,16 +26,15 @@ public class StateDocument
   {
     this.id = Integer.toString(partition);
     this.state = new HashMap<>();
-    this.seen = new HashMap<>();
   }
 
   public StateDocument(
       Integer partition,
       Map<String, Long> state,
-      Map<String, List<Long>> seen)
+      long offset)
   {
     this.id = Integer.toString(partition);
     this.state = state;
-    this.seen = seen;
+    this.offset = offset;
   }
 }