Method CreateGeneric
- Namespace
- AvroSharp.Containers
- Assembly
- AvroSharp.dll
CreateGeneric(Stream, AvroSchema, AvroFileWriterOptions?, GenericDatumWriterOptions?)
Creates a writer of generic values (AvroValue, GenericRecord).
public static AvroFileWriter<AvroValue> CreateGeneric(Stream stream, AvroSchema schema, AvroFileWriterOptions? options = null, GenericDatumWriterOptions? writerOptions = null)
Parameters
streamStreamThe destination.
schemaAvroSchemaThe schema of every object in the file.
optionsAvroFileWriterOptionsThe file options, or null for the defaults.
writerOptionsGenericDatumWriterOptionsThe generic writer's options, or null for the defaults.