Avro C#
Loading...
Searching...
No Matches
Avro.Generic.DatumWriter< T > Interface Template Reference

Defines the interface for an object that writes data of a schema. More...

Inheritance diagram for Avro.Generic.DatumWriter< T >:
Avro.Generic.GenericWriter< T > Avro.Generic.PreresolvingDatumWriter< T > Avro.Reflect.ReflectWriter< T > Avro.Specific.SpecificWriter< T > Avro.Generic.GenericDatumWriter< T > Avro.Specific.SpecificDatumWriter< T >

Public Member Functions

void Write (T datum, Encoder encoder)
 Write a datum. Traverse the schema, depth first, writing each leaf value in the schema from the datum to the output.

Properties

Schema Schema [get]
 Schema used to write the data.

Detailed Description

Defines the interface for an object that writes data of a schema.

Template Parameters
TType of the in-memory data representation.

Member Function Documentation

◆ Write()

void Avro.Generic.DatumWriter< T >.Write ( T datum,
Encoder encoder )

Write a datum. Traverse the schema, depth first, writing each leaf value in the schema from the datum to the output.

Parameters
datumDatum to write
encoderEncoder to write to

Implemented in Avro.Generic.GenericWriter< T >, Avro.Generic.PreresolvingDatumWriter< T >, and Avro.Reflect.ReflectWriter< T >.

Property Documentation

◆ Schema

Schema Avro.Generic.DatumWriter< T >.Schema
get

The documentation for this interface was generated from the following file:
  • src/apache/main/Generic/DatumWriter.cs