Codec
Convenience trait that allows to define both custom Encoder and custom Decoder in one go, if both are needed. This way, they don't have to be declared in two separate classes or objects.
Convenience trait that allows to define both custom Encoder and custom Decoder in one go, if both are needed. This way, they don't have to be declared in two separate classes or objects.
A codec can both encode a Scala value of type T into a compatible Avro value based on the given schema as well as decode an Avro value, such as a GenericRecord, SpecificRecord, GenericFixed, EnumSymbol, or a basic JVM type, into a target Scala type.
Value members
Inherited methods
Returns an [[Encoder[U]] by applying a function that maps a U to an T, before encoding as an T using this encoder.
Returns an [[Encoder[U]] by applying a function that maps a U to an T, before encoding as an T using this encoder.
- Inherited from
- Encoder