org.mapdb / Serializer / INTEGER_DELTA


static val INTEGER_DELTA: GroupSerializer<Int>

A predefined Serializer that handles non-null Integer whereby Integers are serialized to a compressed byte format and neighboring Integers are delta encoded in BTreeMaps. Neighbors with a small delta can be encoded using a single byte.

Smaller positive values occupy less than 4 bytes. Large and negative values could occupy 4 or 5 bytes.

This Serializer hashes Integers using the original Integer#hashCode() method.

If a null value is passed to the Serializer, a NullPointerException will be thrown.