Class GenericDatumWriter
Writes AvroValue data in Avro binary encoding for one schema. The schema is compiled once into a tree of typed writer nodes, so writing does not inspect the schema; instances are cached per schema and are thread-safe.
public sealed class GenericDatumWriter
- Inheritance
-
GenericDatumWriter
- Inherited Members
Properties
- Schema
Gets the schema values are written with.
Methods
- Create(AvroSchema, GenericDatumWriterOptions?)
Gets the writer for
schema, compiling it on first use. Writers with the default options are cached per schema; writers with custom options are created each time, so keep and reuse them.
- Write(ref AvroWriter, in AvroValue)
Writes a value.
- Write(IBufferWriter<byte>, in AvroValue)
Writes a value to
outputand commits it.
- WriteToArray(in AvroValue)
Writes a value to a new array.