import org.springframework.data.mongodb.core.mapping.Document;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
-@Document(collection = "statistics")
+@Document(collection = "state")
@ToString
public class StateDocument
{
this.state = new HashMap<>();
}
- public StateDocument(
- Integer partition,
- Map<String, Long> state,
- long offset)
+ public StateDocument(Integer partition, Map<String, Long> state, long offset)
{
this.id = Integer.toString(partition);
this.state = state;