Serializes the specified value of type A
into bytes.
Serializes the specified value of type A
into bytes. The
Kafka topic name, to which the serialized bytes are going
to be sent, and record headers are available.
Always only returns Unit
.
Always only returns Unit
. For interoperability with Kafka serialization.
Always only returns Unit
.
Always only returns Unit
. For interoperability with Kafka serialization.
Creates a new Serializer which applies the specified
function f
on a value of type B
, and then serializes
the result with this Serializer.
Creates a new Serializer which applies the specified
function f
on the output bytes of this Serializer.
Creates a new Serializer which serializes Some
values
using this Serializer, and serializes None
as null
.
For interoperability with Kafka serialization.
For interoperability with Kafka serialization.
For interoperability with Kafka serialization.
For interoperability with Kafka serialization.
Serializer is a functional Kafka serializer which directly extends the Kafka
Serializer
interface, but doesn't make use ofclose
orconfigure
. There is only a single function for serialization, which provides access to the record headers.