org.mapdb / Serializer / STRING_DELTA2

STRING_DELTA2

static val STRING_DELTA2: GroupSerializer<String>

A predefined Serializer that handles non-null String whereby Strings are serialized to a UTF-8 encoded format. The Serializer also stores the String's size, allowing it to be used as a GroupSerializer in BTreeMaps. Neighboring strings may be delta encoded for increased storage efficency.

This Serializer hashes Strings using a specially tailored hash code method as opposed to the Serializer#STRING_ORIGHASH Serializer.

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

See Also
Serializer#STRING