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 Map<String, AdderResult> state;
19 public Map<String, List<AdderResult>> results;
21 public StateDocument()
25 public StateDocument(Integer partition)
27 this.id = Integer.toString(partition);
28 this.state = new HashMap<>();
29 this.results = new HashMap<>();
34 Map<String, AdderResult> state,
35 Map<String, List<AdderResult>> results)
37 this.id = Integer.toString(partition);
39 this.results = results;