Provides a mapping between the Scala wrapper class S, which should extend AvroSerializeable, and the
corresponding Java class J, which should extend org.apache.avro.specific.SpecificRecordBase. Typically an
an implicit instance of this trait would be defined on the companion object of a class extending
AvroSerializeable, and J would be a Java class produced by Avro code generation.
An implicit instance with this trait will provide to Avro values that would in a Java application be provided by
static members of the SpecificRecordBase.
S
Scala class
J
Java class from Avro code generation
Linear Supertypes
AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
AvroMetadata
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Abstract Value Members
abstract valavroClass: Class[J]
Java class into which the corresponding Scala class maps
abstract valfromAvro: (J) ⇒ S
Function that can produce an instance of type S from an instance of type J
abstract valschema: Schema
Avro Schema instance typically provided by the avro-tools generated java class
Provides a mapping between the Scala wrapper class
S
, which should extend AvroSerializeable, and the corresponding Java classJ
, which should extendorg.apache.avro.specific.SpecificRecordBase
. Typically an an implicit instance of this trait would be defined on the companion object of a class extending AvroSerializeable, andJ
would be a Java class produced by Avro code generation.An implicit instance with this trait will provide to Avro values that would in a Java application be provided by static members of the
SpecificRecordBase
.Scala class
Java class from Avro code generation