AvroDeserializer

fs2.kafka.vulcan.AvroDeserializer
See theAvroDeserializer companion object
sealed abstract class AvroDeserializer[F[_]]

Creates deserializers for record keys and values with Vulcan Codecs.

Deserializers use the Confluent wire format, which is the Avro binary prefixed by a zero magic byte and the 4-byte schema id. There is also support for the key_schema_id and value_schema_id headers, in which case the Avro binary is not prefixed.

Deserialization is done using the writer schema from the schema registry, following Avro's schema resolution, where decoders are compiled once for each writer schema.

Use AvroDeserializer.default to create an instance.

Attributes

Companion
object
Source
AvroDeserializer.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def forKey[A](implicit codec: Codec[A]): Resource[F, KeyDeserializer[F, A]]

Returns a deserializer for record keys, failing if the codec schema is invalid.

Returns a deserializer for record keys, failing if the codec schema is invalid.

Attributes

Source
AvroDeserializer.scala
def forValue[A](implicit codec: Codec[A]): Resource[F, ValueDeserializer[F, A]]

Returns a deserializer for record values, failing if the codec schema is invalid.

Returns a deserializer for record values, failing if the codec schema is invalid.

Attributes

Source
AvroDeserializer.scala

The client for the schema registry where writer schemas are looked up.

The client for the schema registry where writer schemas are looked up.

Attributes

Source
AvroDeserializer.scala