AvroAsJsonDeserializer

case
class AvroAsJsonDeserializer(properties: Map[String, Any], isKey: Boolean) extends Deserializer[Any, Json]
trait Serializable
trait Product
trait Equals
trait Deserializer[Any, Json]
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def deserialize(topic: String, headers: Headers, data: Array[Byte]): RIO[Any, Json]
Definition Classes
Deserializer

Inherited methods

def asOption(implicit @nowarn ev: Json <:< AnyRef): Deserializer[Any, Option[Json]]

Returns a new deserializer that deserializes values as Option values, mapping null data to None values.

Returns a new deserializer that deserializes values as Option values, mapping null data to None values.

Inherited from
Deserializer
def asTry: Deserializer[Any, Try[Json]]

Serde that handles deserialization failures by returning a Task

Serde that handles deserialization failures by returning a Task

This is useful for explicitly handling deserialization failures.

Inherited from
Deserializer
def blocking: Deserializer[Any & Blocking, Json]

Returns a new deserializer that executes its deserialization function on the blocking threadpool.

Returns a new deserializer that executes its deserialization function on the blocking threadpool.

Inherited from
Deserializer
def map[U](f: Json => U): Deserializer[Any, U]

Create a deserializer for a type U based on the deserializer for type T and a mapping function

Create a deserializer for a type U based on the deserializer for type T and a mapping function

Inherited from
Deserializer
def mapM[R1, U](f: Json => RIO[R1, U]): Deserializer[R1, U]

Create a deserializer for a type U based on the deserializer for type T and an effectful mapping function

Create a deserializer for a type U based on the deserializer for type T and an effectful mapping function

Inherited from
Deserializer
def orElse[R1, U >: Json](alternative: Deserializer[R1, U]): Deserializer[R1, U]

When this serializer fails, attempt to deserialize with the alternative

When this serializer fails, attempt to deserialize with the alternative

If both deserializers fail, the error will be the last deserializer's exception.

Inherited from
Deserializer
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product