Map<TopicPartition, Long> read() throws IOException
OffsetCheckpoint is created when:
OffsetCheckpoint only takes the offset checkpoint file when created.
|The default name of the file is .checkpoint.|
OffsetCheckpoint uses the internal version to maintain compatibility between checkpointing protocols. The current version is 0.
void write(final Map<TopicPartition, Long> offsets) throws IOException