Creates a new HeaderSerializer which applies the specified
function f
on a value of type B
, and then serializes the
result with this HeaderSerializer.
Creates a new HeaderSerializer which applies the specified
function f
on the output bytes of this HeaderSerializer.
Creates a new HeaderSerializer which serializes Some
values using this HeaderSerializer, and serializes
None
as null
.
HeaderSerializer is a functional serializer for Kafka record header values. It's similar to Serializer, except it only has access to the value, and it does not interoperate with the Kafka
Serializer
interface.