HeaderSerializer

sealed abstract class HeaderSerializer[A]

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
class Object
trait Matchable
class Any

Value members

Abstract methods

def serialize(a: A): Array[Byte]
Implicitly added by option

Serializes the specified value of type A into bytes.

Serializes the specified value of type A into bytes.

def serialize(a: A): Array[Byte]

Serializes the specified value of type A into bytes.

Serializes the specified value of type A into bytes.

Concrete methods

final def contramap[B](f: B => A): HeaderSerializer[B]
Implicitly added by option

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.

final def contramap[B](f: B => A): HeaderSerializer[B]

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.

final def mapBytes(f: Array[Byte] => Array[Byte]): HeaderSerializer[A]
Implicitly added by option

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.

final def mapBytes(f: Array[Byte] => Array[Byte]): HeaderSerializer[A]

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.

final def option: HeaderSerializer[Option[A]]
Implicitly added by option

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.

final def option: HeaderSerializer[Option[A]]

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.