org.mapdb / Serializer / STRING_INTERN

STRING_INTERN

static val STRING_INTERN: 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.

Deserialized strings are automatically interned String#intern() allowing a more heap space efficient storage for repeated strings.

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