Deserializer

zio.kafka.serde.Deserializer
See theDeserializer companion trait
object Deserializer

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[R, T](deser: (String, Headers, Array[Byte]) => RIO[R, T]): Deserializer[R, T]

Create a deserializer from a function

Create a deserializer from a function

Attributes

def fromKafkaDeserializer[T](deserializer: Deserializer[T], props: Map[String, AnyRef], isKey: Boolean): Task[Deserializer[Any, T]]

Create a Deserializer from a Kafka Deserializer

Create a Deserializer from a Kafka Deserializer

Attributes

Inherited fields

val byteArray: Serde[Any, Array[Byte]]

Optimisation

Optimisation

Here, we're not using KafkaSerdes.ByteArray() because the underlying deserializer and serializer implementations are just identity functions.

That allows us to use ZIO.succeed instead of ZIO.attempt.

Attributes

Inherited from:
Serdes (hidden)
val byteBuffer: Serde[Any, ByteBuffer]

Attributes

Inherited from:
Serdes (hidden)
val bytes: Serde[Any, Bytes]

Attributes

Inherited from:
Serdes (hidden)
val double: Serde[Any, Double]

Attributes

Inherited from:
Serdes (hidden)
val float: Serde[Any, Float]

Attributes

Inherited from:
Serdes (hidden)
val int: Serde[Any, Int]

Attributes

Inherited from:
Serdes (hidden)
val long: Serde[Any, Long]

Attributes

Inherited from:
Serdes (hidden)
val short: Serde[Any, Short]

Attributes

Inherited from:
Serdes (hidden)
val string: Serde[Any, String]

Attributes

Inherited from:
Serdes (hidden)
val uuid: Serde[Any, UUID]

Attributes

Inherited from:
Serdes (hidden)