import java.util.Map;
-@Document(collection = "statistics")
+@Document(collection = "state")
@ToString
public class StateDocument
{
@Id
public String id;
- public long offset = -1l;
- public Map<String, Long> state;
+ public Map<String, AdderResult> state;
+ public Map<String, List<AdderResult>> results;
public StateDocument()
{
{
this.id = Integer.toString(partition);
this.state = new HashMap<>();
+ this.results = new HashMap<>();
}
public StateDocument(
Integer partition,
- Map<String, Long> state,
- long offset)
+ Map<String, AdderResult> state,
+ Map<String, List<AdderResult>> results)
{
this.id = Integer.toString(partition);
this.state = state;
- this.offset = offset;
+ this.results = results;
}
}