Table of Contents

Method CreateGeneric

Namespace
AvroSharp.Streams
Assembly
AvroSharp.dll

CreateGeneric(Stream, AvroSchema, AvroStreamOptions?, GenericDatumWriterOptions?)

Creates a writer of generic values (AvroValue, GenericRecord).

public static AvroStreamWriter<AvroValue> CreateGeneric(Stream stream, AvroSchema schema, AvroStreamOptions? options = null, GenericDatumWriterOptions? writerOptions = null)

Parameters

stream Stream

The destination.

schema AvroSchema

The schema of every object.

options AvroStreamOptions

The stream options, or null for the defaults.

writerOptions GenericDatumWriterOptions

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

Returns

AvroStreamWriter<AvroValue>