Table of Contents

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

stream Stream

The destination.

schema AvroSchema

The schema of every object in the file.

options AvroFileWriterOptions

The file options, or null for the defaults.

writerOptions GenericDatumWriterOptions

The generic writer's options, or null for the defaults.

Returns

AvroFileWriter<AvroValue>