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;
11 @Document(collection = "statistics")
13 public class StatisticsDocument
17 public Map<String, Integer> statistics;
19 public StatisticsDocument()
23 public StatisticsDocument(Integer partition, Map<String, Integer> statistics)
25 this.id = Integer.toString(partition);
26 this.statistics = statistics;