object GenericDeserializer

Source
Deserializer.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenericDeserializer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[F[_]](implicit F: Sync[F]): Deserializer[F, Array[Byte]]

    Alias for Deserializer#identity.

  5. def apply[F[_], A](implicit deserializer: Deserializer[F, A]): Deserializer[F, A]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. implicit def attempt[F[_], A](implicit deserializer: Deserializer[F, A]): Deserializer[F, Either[Throwable, A]]

    The attempt Deserializer try to deserialize to type A, When it fails returns Left containing the exception, otherwise returns Right with the value A

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def const[F[_], A](a: A)(implicit F: Sync[F]): Deserializer[F, A]

    Creates a new Deserializer which deserializes all bytes to the specified value of type A.

  10. def delegate[F[_], A](deserializer: KafkaDeserializer[A])(implicit F: Sync[F]): Deserializer[F, A]

    Creates a new Deserializer which delegates deserialization to the specified Kafka Deserializer.

    Creates a new Deserializer which delegates deserialization to the specified Kafka Deserializer. Note that the close and configure functions won't be called for the delegate.

    It is assumed the delegate deserialize function is pure. If it's not pure, then use suspend after delegate, so the impure behaviours can be captured properly.

  11. implicit def double[F[_]](implicit F: Sync[F]): Deserializer[F, Double]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def fail[F[_], A](e: Throwable)(implicit F: Sync[F]): Deserializer[F, A]

    Creates a new Deserializer which always fails deserialization with the specified exception e.

  15. def failWith[F[_], A](message: String)(implicit F: Sync[F]): Deserializer[F, A]

    Creates a new Deserializer which always fails deserialization with a DeserializationException using the specified message.

  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. implicit def float[F[_]](implicit F: Sync[F]): Deserializer[F, Float]
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def headers[F[_], A](f: (Headers) => Deserializer[F, A])(implicit F: Sync[F]): Deserializer[F, A]

    Creates a new Deserializer which can use different Deserializers depending on the record headers.

  21. implicit def identity[F[_]](implicit F: Sync[F]): Deserializer[F, Array[Byte]]

    The identity Deserializer, which does not perform any kind of deserialization, simply using the input bytes as the output.

  22. def instance[F[_], A](f: (String, Headers, Array[Byte]) => F[A])(implicit F: Sync[F]): Deserializer[F, A]

    Creates a new Deserializer from the specified function.

    Creates a new Deserializer from the specified function. Use lift instead if the deserializer doesn't need access to the Kafka topic name or record headers.

  23. implicit def int[F[_]](implicit F: Sync[F]): Deserializer[F, Int]
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def lift[F[_], A](f: (Array[Byte]) => F[A])(implicit F: Sync[F]): Deserializer[F, A]

    Creates a new Deserializer from the specified function, ignoring from which Kafka topic the bytes came and any record headers.

    Creates a new Deserializer from the specified function, ignoring from which Kafka topic the bytes came and any record headers. Use instance instead if the deserializer needs access to the Kafka topic name or the record headers.

  26. implicit def long[F[_]](implicit F: Sync[F]): Deserializer[F, Long]
  27. implicit def monadError[T <: KeyOrValue, F[_]](implicit F: Sync[F]): MonadError[[γ$0$]GenericDeserializer[T, F, γ$0$], Throwable]
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. implicit def option[F[_], A](implicit deserializer: Deserializer[F, A]): Deserializer[F, Option[A]]

    The option Deserializer returns None when the bytes are null, and otherwise deserializes using the deserializer for the type A, wrapping the result in Some.

  32. implicit def resource[T <: KeyOrValue, F[_], A](implicit des: GenericDeserializer[T, F, A]): Resource[F, GenericDeserializer[T, F, A]]
  33. implicit def short[F[_]](implicit F: Sync[F]): Deserializer[F, Short]
  34. implicit def string[F[_]](implicit F: Sync[F]): Deserializer[F, String]
  35. def string[F[_]](charset: Charset)(implicit F: Sync[F]): Deserializer[F, String]

    Creates a new Deserializer which deserializes String values using the specified Charset.

    Creates a new Deserializer which deserializes String values using the specified Charset. Note that the default String deserializer uses UTF-8.

  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def topic[T <: KeyOrValue, F[_], A](f: PartialFunction[String, GenericDeserializer[T, F, A]])(implicit F: Sync[F]): GenericDeserializer[T, F, A]

    Creates a new Deserializer which can use different Deserializers depending on the Kafka topic name from which the serialized bytes came.

  39. implicit def unit[F[_]](implicit F: Sync[F]): Deserializer[F, Unit]
  40. implicit def uuid[F[_]](implicit F: Sync[F]): Deserializer[F, UUID]
  41. def uuid[F[_]](charset: Charset)(implicit F: Sync[F]): Deserializer[F, UUID]

    Creates a new Deserializer which deserializes String values using the specified Charset as UUIDs.

    Creates a new Deserializer which deserializes String values using the specified Charset as UUIDs. Note that the default UUID deserializer uses UTF-8.

  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped