1 package de.juplo.kafka;
3 import lombok.ToString;
4 import org.springframework.data.annotation.Id;
5 import org.springframework.data.mongodb.core.mapping.Document;
7 import java.util.HashMap;
12 @Document(collection = "state")
14 public class StateDocument
18 public long offset = -1l;
19 public Map<String, AdderResult> state;
20 public Map<String, List<AdderResult>> results;
22 public StateDocument()
26 public StateDocument(Integer partition)
28 this.id = Integer.toString(partition);
29 this.state = new HashMap<>();
30 this.results = new HashMap<>();
35 Map<String, AdderResult> state,
36 Map<String, List<AdderResult>> results,
39 this.id = Integer.toString(partition);
41 this.results = results;