Encoder

com.sksamuel.avro4s.Encoder
See theEncoder companion trait

Attributes

Companion
trait
Graph
Supertypes
trait AutoDerivation[Encoder]
trait Derivation[Encoder]
trait SealedTraitDerivation
trait CommonDerivation[Encoder]
class Object
trait Matchable
class Any
Show all
Self type
Encoder.type

Members list

Type members

Inherited types

type Typeclass[T] = TypeClass[T]

Attributes

Inherited from:
CommonDerivation

Value members

Concrete methods

def apply[T](f: T => Any): Encoder[T]

Returns an [Encoder] that encodes using the supplied function.

Returns an [Encoder] that encodes using the supplied function.

Attributes

def apply[T](using encoder: Encoder[T]): Encoder[T]
def identity[T]: Encoder[T]

Returns an [Encoder] that encodes by simply returning the input value.

Returns an [Encoder] that encodes by simply returning the input value.

Attributes

Inherited methods

inline def `getParams__`[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], inheritedAnnotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], defaults: Map[String, Option[() => Any]], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
inline override protected def deriveSubtype[s](m: Of[s]): TypeClass[s]

Attributes

Definition Classes
Derivation -> SealedTraitDerivation
Inherited from:
Derivation
inline def derived[A](using Of[A]): TypeClass[A]

Attributes

Inherited from:
Derivation
inline def derivedMirror[A](using mirror: Of[A]): TypeClass[A]

Attributes

Inherited from:
Derivation
inline def derivedMirrorProduct[A](product: ProductOf[A]): TypeClass[A]

Attributes

Inherited from:
CommonDerivation
inline def derivedMirrorSum[A](sum: SumOf[A]): TypeClass[A]

Attributes

Inherited from:
Derivation
inline def getParams[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
inline def getParams_[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], inheritedAnnotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
override def join[T](ctx: CaseClass[Encoder, T]): Encoder[T]

Attributes

Definition Classes
MagnoliaDerivedEncoder -> CommonDerivation
Inherited from:
MagnoliaDerivedEncoder
inline protected def sealedTraitFromMirror[A](m: SumOf[A]): SealedTrait[Typeclass, A]

Attributes

Inherited from:
SealedTraitDerivation
override def split[T](ctx: SealedTrait[Encoder, T]): Encoder[T]

Attributes

Definition Classes
MagnoliaDerivedEncoder -> Derivation
Inherited from:
MagnoliaDerivedEncoder
transparent inline def subtypes[T, SubtypeTuple <: Tuple](m: SumOf[T], idx: Int): List[Subtype[Typeclass, T, _]]

Attributes

Inherited from:
Derivation
transparent inline protected def subtypesFromMirror[A, SubtypeTuple <: Tuple](m: SumOf[A], idx: Int): List[Subtype[Typeclass, A, _]]

Attributes

Inherited from:
SealedTraitDerivation

Inherited fields

val IterableByteEncoder: Encoder[Iterable[Byte]]

Attributes

Inherited from:
ByteIterableEncoders

Givens

Inherited givens

given BooleanEncoder: Encoder[Boolean]

Attributes

Inherited from:
PrimitiveEncoders
given ByteEncoder: Encoder[Byte]

Attributes

Inherited from:
PrimitiveEncoders
given DateEncoder: Encoder[Date]

Attributes

Inherited from:
TemporalEncoders
given DoubleEncoder: Encoder[Double]

Attributes

Inherited from:
PrimitiveEncoders
given FloatEncoder: Encoder[Float]

Attributes

Inherited from:
PrimitiveEncoders
given LocalDateEncoder: Encoder[LocalDate]

Attributes

Inherited from:
TemporalEncoders
given LongEncoder: Encoder[Long]

Attributes

Inherited from:
PrimitiveEncoders
given ShortEncoder: Encoder[Short]

Attributes

Inherited from:
PrimitiveEncoders
given TimestampEncoder: Encoder[Timestamp]

Attributes

Inherited from:
TemporalEncoders
inline given autoDerived[A](using Of[A]): TypeClass[A]

Attributes

Inherited from:
AutoDerivation
given eitherEncoder[A, B](using a: Encoder[A], b: Encoder[B]): eitherEncoder[A, B]

Attributes

Inherited from:
EitherEncoders
given given_Encoder_Array[T](using encoder: Encoder[T], tag: ClassTag[T]): Encoder[Array[T]]

Attributes

Inherited from:
CollectionEncoders
given given_Encoder_Array: Encoder[Array[Byte]]

Attributes

Inherited from:
ByteIterableEncoders
given given_Encoder_BigDecimal: Encoder[BigDecimal]

Attributes

Inherited from:
BigDecimalEncoders
given given_Encoder_ByteBuffer: Encoder[ByteBuffer]

Attributes

Inherited from:
ByteIterableEncoders
given given_Encoder_CharSequence: Encoder[CharSequence]

Attributes

Inherited from:
StringEncoders
given given_Encoder_Instant: Encoder[Instant]

Attributes

Inherited from:
TemporalEncoders

Attributes

Inherited from:
PrimitiveEncoders
given given_Encoder_List[T](using encoder: Encoder[T]): Encoder[List[T]]

Attributes

Inherited from:
CollectionEncoders
given given_Encoder_List: Encoder[List[Byte]]

Attributes

Inherited from:
ByteIterableEncoders
given given_Encoder_LocalDateTime: Encoder[LocalDateTime]

Attributes

Inherited from:
TemporalEncoders
given given_Encoder_LocalTime: Encoder[LocalTime]

Attributes

Inherited from:
TemporalEncoders
given given_Encoder_OffsetDateTime: Encoder[OffsetDateTime]

Attributes

Inherited from:
TemporalEncoders
given given_Encoder_Option[T](using encoder: Encoder[T]): Encoder[Option[T]]

Attributes

Inherited from:
OptionEncoders
given given_Encoder_Seq[T](using encoder: Encoder[T]): Encoder[Seq[T]]

Attributes

Inherited from:
CollectionEncoders
given given_Encoder_Seq: Encoder[Seq[Byte]]

Attributes

Inherited from:
ByteIterableEncoders
given given_Encoder_Set[T](using encoder: Encoder[T]): Encoder[Set[T]]

Attributes

Inherited from:
CollectionEncoders
given given_Encoder_String: Encoder[String]

Attributes

Inherited from:
StringEncoders
given given_Encoder_Tuple2[A, B](using a: Encoder[A], b: Encoder[B]): Encoder[(A, B)]

Attributes

Inherited from:
TupleEncoders
given given_Encoder_Tuple3[A, B, C](using a: Encoder[A], b: Encoder[B], c: Encoder[C]): Encoder[(A, B, C)]

Attributes

Inherited from:
TupleEncoders
given given_Encoder_Tuple4[A, B, C, D](using a: Encoder[A], b: Encoder[B], c: Encoder[C], d: Encoder[D]): Encoder[(A, B, C, D)]

Attributes

Inherited from:
TupleEncoders
given given_Encoder_Tuple5[A, B, C, D, E](using a: Encoder[A], b: Encoder[B], c: Encoder[C], d: Encoder[D], e: Encoder[E]): Encoder[(A, B, C, D, E)]

Attributes

Inherited from:
TupleEncoders

Attributes

Inherited from:
StringEncoders

Attributes

Inherited from:
StringEncoders
given given_Encoder_Vector[T](using encoder: Encoder[T]): Encoder[Vector[T]]

Attributes

Inherited from:
CollectionEncoders
given given_Encoder_Vector: Encoder[Vector[Byte]]

Attributes

Inherited from:
ByteIterableEncoders
given mapEncoder[T](using encoder: Encoder[T]): Encoder[Map[String, T]]

Attributes

Inherited from:
CollectionEncoders