{
@Id
public String id;
- public long offset;
- public Map<String, Integer> statistics;
+ public long offset = -1l;
+ public Map<String, Long> statistics;
public StatisticsDocument()
{
this.statistics = new HashMap<>();
}
- public StatisticsDocument(Integer partition, Map<String, Integer> statistics, long offset)
+ public StatisticsDocument(Integer partition, Map<String, Long> statistics, long offset)
{
this.id = Integer.toString(partition);
this.statistics = statistics;