com.sksamuel.avro4s.ToRecord
See theToRecord companion object
trait ToRecord[T] extends Serializable
Converts from instances of T into Record's.
Note: This interface requires that T is marshalled to an Avro GenericRecord / SpecificRecord, and therefore is limited to use by case classes or traits. This interface is essentially just a convenience wrapper around an Encoder so you do not have to cast the result.
If you wish to convert an avro type other than record use an Encoder directly.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
-
trait RecordFormat[T]
Members list
In this article