Expand description
Serialization interfaces and implementations (org.apache.kafka.common.serialization).
Provides the Serializer and Deserializer traits and common
implementations for strings and byte arrays.
Structs§
- Byte
Array Deserializer - Deserializes byte arrays by returning the bytes unchanged.
- Byte
Array Serializer - Serializes byte arrays by passing them through unchanged.
- Bytes
Deserializer - Deserializes byte arrays into refcounted [
bytes::Bytes]. - String
Deserializer - String encoding defaults to UTF8 and can be customized by setting the property key.deserializer.encoding, value.deserializer.encoding or deserializer.encoding. The first two take precedence over the last.
- String
Serializer - String encoding defaults to UTF8 and can be customized by setting the property key.serializer.encoding, value.serializer.encoding or serializer.encoding. The first two take precedence over the last.
Traits§
- Deserializer
- An interface for converting bytes to objects.
- Serializer
- An interface for converting objects to bytes.