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
Source:
HeaderSerializer.scala
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.

Source:
HeaderSerializer.scala
def serialize(a: A): Array[Byte]

Serializes the specified value of type A into bytes.

Serializes the specified value of type A into bytes.

Source:
HeaderSerializer.scala

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.

Source:
HeaderSerializer.scala
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.

Source:
HeaderSerializer.scala
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.

Source:
HeaderSerializer.scala
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.

Source:
HeaderSerializer.scala
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.

Source:
HeaderSerializer.scala

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.

Source:
HeaderSerializer.scala