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.
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.
- Companion
- object
Value members
Abstract methods
Serializes the specified value of type A
into bytes.
Serializes the specified value of type A
into bytes.
Concrete methods
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 a value of type B
, and then serializes the
result with this HeaderSerializer.
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 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 applies the specified
function f
on the output bytes of this HeaderSerializer.
Creates a new HeaderSerializer which applies the specified
function f
on the output bytes of 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
.
Creates a new HeaderSerializer which serializes Some
values using this HeaderSerializer, and serializes
None
as null
.
Creates a new HeaderSerializer which serializes Some
values using this HeaderSerializer, and serializes
None
as null
.
Creates a new HeaderSerializer which serializes Some
values using this HeaderSerializer, and serializes
None
as null
.