org.mapdb / Serializer / LONG_DELTA

LONG_DELTA

static val LONG_DELTA: GroupSerializer<Long>

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

Smaller positive values occupy less than 8 bytes. Large and negative values could occupy 8 or 9 bytes.

This Serializer hashes Longs using the original Long#hashCode() method.

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