Object/Trait

com.sksamuel.avro4s

Encoder

Related Docs: trait Encoder | package avro4s

Permalink

object Encoder extends CoproductEncoders with TupleEncoders with Serializable

Linear Supertypes
Serializable, Serializable, TupleEncoders, CoproductEncoders, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Encoder
  2. Serializable
  3. Serializable
  4. TupleEncoders
  5. CoproductEncoders
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 BigDecimalEncoder extends Encoder[BigDecimal]

    Permalink
  5. implicit object BooleanEncoder extends Encoder[Boolean]

    Permalink
  6. implicit object ByteArrayEncoder extends Encoder[Array[Byte]]

    Permalink
  7. implicit object ByteBufferEncoder extends Encoder[ByteBuffer]

    Permalink
  8. implicit object ByteEncoder extends Encoder[Byte]

    Permalink
  9. implicit val ByteListEncoder: Encoder[List[Byte]]

    Permalink
  10. implicit val ByteSeqEncoder: Encoder[Seq[Byte]]

    Permalink
  11. implicit val ByteVectorEncoder: Encoder[Vector[Byte]]

    Permalink
  12. implicit val DateEncoder: Encoder[Date]

    Permalink
  13. implicit object DoubleEncoder extends Encoder[Double]

    Permalink
  14. implicit object FloatEncoder extends Encoder[Float]

    Permalink
  15. implicit val InstantEncoder: Encoder[Instant]

    Permalink
  16. implicit object IntEncoder extends Encoder[Int]

    Permalink
  17. implicit val LocalDateEncoder: Encoder[LocalDate]

    Permalink
  18. implicit val LocalDateTimeEncoder: Encoder[LocalDateTime]

    Permalink
  19. implicit val LocalTimeEncoder: Encoder[LocalTime]

    Permalink
  20. implicit object LongEncoder extends Encoder[Long]

    Permalink
  21. implicit object NoneEncoder extends Encoder[None.type]

    Permalink
  22. implicit object ShortEncoder extends Encoder[Short]

    Permalink
  23. implicit object StringEncoder extends Encoder[String]

    Permalink
  24. implicit val TimestampEncoder: Encoder[Timestamp]

    Permalink
  25. implicit val UUIDEncoder: Encoder[UUID]

    Permalink
  26. def apply[T](implicit encoder: Encoder[T]): Encoder[T]

    Permalink
  27. implicit macro def applyMacro[T]: Encoder[T]

    Permalink
  28. def applyMacroImpl[T](c: Context)(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): scala.reflect.macros.whitebox.Context.Expr[Encoder[T]]

    Permalink
  29. implicit def arrayEncoder[T](implicit encoder: Encoder[T]): Encoder[Array[T]]

    Permalink
  30. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  31. def buildRecord(schema: Schema, values: Seq[AnyRef], fullName: String): AnyRef

    Permalink

    Takes the encoded values from the fields of a type T and builds an ImmutableRecord from them, using the given schema.

    Takes the encoded values from the fields of a type T and builds an ImmutableRecord from them, using the given schema.

    The schema for a record must be of Type Schema.Type.RECORD but the case class may have been a subclass of a trait. In this case the schema will be a union and so we must extract the correct subschema from the union.

    fullName

    the full name of the record in Avro, taking into account Avro modifiers such as @AvroNamespace and @AvroErasedName. This name is used for extracting the specific subschema from a union schema.

  32. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. implicit def cnilEncoder: Encoder[CNil]

    Permalink
    Definition Classes
    CoproductEncoders
  34. implicit def coproductEncoder[S, T <: Coproduct](implicit encoderS: Encoder[S], encoderT: Encoder[T]): Encoder[:+:[S, T]]

    Permalink
    Definition Classes
    CoproductEncoders
  35. implicit def eitherEncoder[T, U](implicit leftEncoder: Encoder[T], rightEncoder: Encoder[U]): Encoder[Either[T, U]]

    Permalink
  36. def encodeField[T](t: T, fieldName: String, schema: Schema, fullName: String)(implicit encoder: Encoder[T]): AnyRef

    Permalink

    Encodes a field in a case class by bringing in an implicit encoder for the field's type.

    Encodes a field in a case class by bringing in an implicit encoder for the field's type. The schema passed in here is the schema for the container type, and the fieldName is the name of the field in the avro schema.

    Note: The field may be a member of a subclass of a trait, in which case the schema passed in will be a union. Therefore we must extract the correct subschema from the union. We can do this by using the fullName of the containing class, and comparing to the record full names in the subschemas.

  37. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  40. implicit def genCoproductEncoder[T, C <: Coproduct](implicit gen: Aux[T, C], coproductEncoder: Encoder[C]): Encoder[T]

    Permalink
    Definition Classes
    CoproductEncoders
  41. implicit def genCoproductSingletons[T, C <: Coproduct, L <: HList](implicit ct: ClassTag[T], gen: Aux[T, C], objs: Aux[C, L], toList: ToList[L, T]): Encoder[T]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. implicit def javaEnumEncoder[E <: Enum[_]]: Encoder[E]

    Permalink
  46. implicit def listEncoder[T](implicit encoder: Encoder[T]): Encoder[List[T]]

    Permalink
  47. implicit def mapEncoder[V](implicit encoder: Encoder[V]): Encoder[Map[String, V]]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  51. implicit def optionEncoder[T](implicit encoder: Encoder[T]): Encoder[Option[T]]

    Permalink
  52. implicit def scalaEnumEncoder[E <: Value]: Encoder[E]

    Permalink
  53. implicit def seqEncoder[T](implicit encoder: Encoder[T]): Encoder[Seq[T]]

    Permalink
  54. implicit def setEncoder[T](implicit encoder: Encoder[T]): Encoder[Set[T]]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  57. implicit def tuple2Encoder[A, B](implicit encA: Encoder[A], encB: Encoder[B]): Encoder[(A, B)]

    Permalink
    Definition Classes
    TupleEncoders
  58. implicit def tuple3Encoder[A, B, C](implicit encA: Encoder[A], encB: Encoder[B], encC: Encoder[C]): Encoder[(A, B, C)]

    Permalink
    Definition Classes
    TupleEncoders
  59. implicit def tuple4Encoder[A, B, C, D](implicit encA: Encoder[A], encB: Encoder[B], encC: Encoder[C], encD: Encoder[D]): Encoder[(A, B, C, D)]

    Permalink
    Definition Classes
    TupleEncoders
  60. implicit def tuple5Encoder[A, B, C, D, E](implicit encA: Encoder[A], encB: Encoder[B], encC: Encoder[C], encD: Encoder[D], encE: Encoder[E]): Encoder[(A, B, C, D, E)]

    Permalink
    Definition Classes
    TupleEncoders
  61. implicit def vectorEncoder[T](implicit encoder: Encoder[T]): Encoder[Vector[T]]

    Permalink
  62. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from TupleEncoders

Inherited from CoproductEncoders

Inherited from AnyRef

Inherited from Any

Ungrouped