ToRecord

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 Serializable
class Object
trait Matchable
class Any
Known subtypes
trait RecordFormat[T]

Members list

Value members

Abstract methods

def to(t: T): Record