ToRecord

trait ToRecord[T] extends Serializable

Converts from instances of T into Record's.

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.

Companion
object
trait Serializable
class Object
trait Matchable
class Any
trait RecordFormat[T]

Value members

Abstract methods

def to(t: T): Record