Object/Trait

com.sksamuel.avro4s

Decoder

Related Docs: trait Decoder | package avro4s

Permalink

object Decoder extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Decoder
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Typeclass[T] = Decoder[T]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit object BigDecimalDecoder extends Decoder[BigDecimal]

    Permalink
  5. implicit object BooleanDecoder extends Decoder[Boolean]

    Permalink
  6. implicit object ByteArrayDecoder extends Decoder[Array[Byte]]

    Permalink
  7. implicit object ByteBufferDecoder extends Decoder[ByteBuffer]

    Permalink
  8. implicit object ByteDecoder extends Decoder[Byte]

    Permalink
  9. implicit val ByteListDecoder: Decoder[List[Byte]]

    Permalink
  10. implicit val ByteSeqDecoder: Decoder[Seq[Byte]]

    Permalink
  11. implicit val ByteVectorDecoder: Decoder[Vector[Byte]]

    Permalink
  12. implicit object CNilDecoderValue extends Decoder[CNil]

    Permalink
  13. implicit val DateDecoder: Decoder[Date]

    Permalink
  14. implicit object DoubleDecoder extends Decoder[Double]

    Permalink
  15. implicit object FloatDecoder extends Decoder[Float]

    Permalink
  16. implicit val InstantDecoder: Decoder[Instant]

    Permalink
  17. implicit object IntDecoder extends Decoder[Int]

    Permalink
  18. implicit val LocalDateDecoder: Decoder[LocalDate]

    Permalink
  19. implicit val LocalDateTimeDecoder: Decoder[LocalDateTime]

    Permalink
  20. implicit object LocalTimeDecoder extends Decoder[LocalTime]

    Permalink
  21. implicit object LongDecoder extends Decoder[Long]

    Permalink
  22. implicit object ShortDecoder extends Decoder[Short]

    Permalink
  23. implicit object StringDecoder extends Decoder[String]

    Permalink
  24. implicit val TimestampDecoder: Decoder[Timestamp]

    Permalink
  25. implicit object UUIDDecoder extends Decoder[UUID]

    Permalink
  26. def apply[T](implicit decoder: Decoder[T]): Decoder[T]

    Permalink
  27. implicit def arrayDecoder[T](implicit decoder: Decoder[T], classTag: ClassTag[T]): Decoder[Array[T]]

    Permalink
  28. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  29. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def combine[T](klass: CaseClass[Typeclass, T]): Decoder[T]

    Permalink
  31. final def const[A](a: A): Decoder[A]

    Permalink

    Create a decoder that always returns a single value.

  32. implicit def coproductDecoder[S, T <: Coproduct](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[S], arg1: Manifest[S], arg2: Decoder[S], decoder: Decoder[T]): Decoder[:+:[S, T]]

    Permalink
  33. def decodeField[T](fieldName: String, record: GenericRecord, readerSchema: Schema, scalaDefault: Any, transient: Boolean, decoder: Decoder[T]): T

    Permalink
  34. def decodeFieldOrApplyDefault[T](fieldName: String, record: GenericRecord, readerSchema: Schema, scalaDefault: Any, transient: Boolean, decoder: Decoder[T]): T

    Permalink

    For a field in the target type (the case class we are marshalling to), we must try to pull a value from the Avro GenericRecord.

    For a field in the target type (the case class we are marshalling to), we must try to pull a value from the Avro GenericRecord. After the value has been retrieved, it needs to be decoded into the appropriate Scala type.

    If the writer schema does not have an entry for the field then we can consider schema evolution using the following rules in the given order.

    1. If the reader schema contains a default for this field, we will use that default. 2. If the parameter is defined with a scala default method then we will use that default value. 3. If the field is marked as @transient

    If none of these rules can be satisfied then an exception will be thrown.

  35. def decodeT[T](value: Any, schema: Schema)(implicit decoder: Decoder[T]): T

    Permalink
  36. def dispatch[T](ctx: SealedTrait[Typeclass, T]): Decoder[T]

    Permalink
  37. implicit def eitherDecoder[A, B](implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[A], arg1: Decoder[A], arg2: Manifest[A], arg3: scala.reflect.api.JavaUniverse.WeakTypeTag[B], arg4: Decoder[B], arg5: Manifest[B]): Decoder[Either[A, B]]

    Permalink
  38. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  40. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  41. implicit macro def gen[T]: Typeclass[T]

    Permalink
  42. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  43. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  44. final def instance[A](fn: (Any, Schema) ⇒ A): Decoder[A]

    Permalink

    Create a decoder from a function.

  45. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  46. implicit def javaEnumDecoder[E <: Enum[E]](implicit tag: ClassTag[E]): Decoder[E]

    Permalink
  47. implicit def listDecoder[T](implicit decoder: Decoder[T]): Decoder[List[T]]

    Permalink
  48. implicit def mapDecoder[T](implicit valueDecoder: Decoder[T]): Decoder[Map[String, T]]

    Permalink
  49. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  50. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  52. implicit def optionDecoder[T](implicit decoder: Decoder[T]): Decoder[Option[T]]

    Permalink
  53. implicit def scalaEnumDecoder[E <: Value](implicit tag: scala.reflect.api.JavaUniverse.WeakTypeTag[E]): Decoder[E] { ... /* 2 definitions in type refinement */ }

    Permalink
  54. implicit def seqDecoder[T](implicit decoder: Decoder[T]): Decoder[Seq[T]]

    Permalink
  55. implicit def setDecoder[T](implicit decoder: Decoder[T]): Decoder[Set[T]]

    Permalink
  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  57. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  58. implicit def tuple2Decoder[A, B](implicit decoderA: Decoder[A], decoderB: Decoder[B]): Decoder[(A, B)]

    Permalink
  59. implicit def tuple3Decoder[A, B, C, D, E](implicit decoderA: Decoder[A], decoderB: Decoder[B], decoderC: Decoder[C]): Decoder[(A, B, C)]

    Permalink
  60. implicit def tuple4Decoder[A, B, C, D, E](implicit decoderA: Decoder[A], decoderB: Decoder[B], decoderC: Decoder[C], decoderD: Decoder[D]): Decoder[(A, B, C, D)]

    Permalink
  61. implicit def tuple5Decoder[A, B, C, D, E](implicit decoderA: Decoder[A], decoderB: Decoder[B], decoderC: Decoder[C], decoderD: Decoder[D], decoderE: Decoder[E]): Decoder[(A, B, C, D, E)]

    Permalink
  62. implicit def vectorDecoder[T](implicit decoder: Decoder[T]): Decoder[Vector[T]]

    Permalink
  63. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped