object Deserializer

Source
Deserializer.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Deserializer
  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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. 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.

  9. 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.

  10. implicit def double[F[_]](implicit F: Sync[F]): Deserializer[F, Double]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. 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.

  14. 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.

  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. implicit def float[F[_]](implicit F: Sync[F]): Deserializer[F, Float]
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. 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.

  20. 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.

  21. 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.

  22. implicit def int[F[_]](implicit F: Sync[F]): Deserializer[F, Int]
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. 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.

  25. implicit def long[F[_]](implicit F: Sync[F]): Deserializer[F, Long]
  26. implicit def monadError[F[_]](implicit F: Sync[F]): MonadError[[β$0$]Deserializer[F, β$0$], Throwable]
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. 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.

  31. implicit def short[F[_]](implicit F: Sync[F]): Deserializer[F, Short]
  32. implicit def string[F[_]](implicit F: Sync[F]): Deserializer[F, String]
  33. 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.

  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def topic[F[_], A](f: PartialFunction[String, Deserializer[F, A]])(implicit F: Sync[F]): Deserializer[F, A]

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

  37. implicit def unit[F[_]](implicit F: Sync[F]): Deserializer[F, Unit]
  38. implicit def uuid[F[_]](implicit F: Sync[F]): Deserializer[F, UUID]
  39. 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.

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

Inherited from AnyRef

Inherited from Any

Ungrouped