Class OffsetMapCodecManager<K,​V>

java.lang.Object
io.confluent.parallelconsumer.offsets.OffsetMapCodecManager<K,​V>

public class OffsetMapCodecManager<K,​V>
extends Object
Uses multiple encodings to compare, when decided, can refactor other options out for analysis only - encodeOffsetsCompressed(long, io.confluent.parallelconsumer.state.PartitionState<K, V>)

TODO: consider IO exception management - question sneaky throws usage?

TODO: enforce max uncommitted < encoding length (Short.MAX)

Bitset serialisation format:

  • byte1: magic
  • byte2-3: Short: bitset size
  • byte4-n: serialised BitSet