Table of Contents

Class AvroFileWriter

Namespace
AvroSharp.Containers
Assembly
AvroSharp.dll

Appending to an existing file.

public static class AvroFileWriter
Inheritance
AvroFileWriter
Inherited Members

Methods

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

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

Create<T>(Stream, AvroFileWriterOptions?)

Creates a container file of a generated type, with its schema.

Create<T>(Stream, AvroSchema, AvroWriteAction<T>, AvroFileWriterOptions?)

Creates a writer. The header is written with the first block, or when the writer is flushed or disposed.

OpenAppendAsync<T>(Stream, AvroFileWriterOptions?, CancellationToken)

Opens a container file of a generated type to append to, reading its header asynchronously.

OpenAppendAsync<T>(Stream, AvroSchema, AvroWriteAction<T>, AvroFileWriterOptions?, CancellationToken)

Opens a container file to append to, as OpenAppend<T>(Stream, AvroSchema, AvroWriteAction<T>, AvroFileWriterOptions?) does, reading its header asynchronously.

OpenAppendGeneric(Stream, AvroSchema?, AvroFileWriterOptions?, GenericDatumWriterOptions?)

Opens a container file to append generic values to, as OpenAppend<T>(Stream, AvroSchema, AvroWriteAction<T>, AvroFileWriterOptions?) does. Without a schema, the file's own is used.

OpenAppendGenericAsync(Stream, AvroSchema?, AvroFileWriterOptions?, GenericDatumWriterOptions?, CancellationToken)

Opens a container file to append generic values to, as OpenAppendGeneric(Stream, AvroSchema?, AvroFileWriterOptions?, GenericDatumWriterOptions?) does, reading its header asynchronously.

OpenAppend<T>(Stream, AvroFileWriterOptions?)

Opens a container file of a generated type to append to, as OpenAppend<T>(Stream, AvroSchema, AvroWriteAction<T>, AvroFileWriterOptions?) does.

OpenAppend<T>(Stream, AvroSchema, AvroWriteAction<T>, AvroFileWriterOptions?)

Opens a container file to append to: reads its header, then writes new blocks at its end with the file's sync marker, so the file reads as one. An empty stream becomes a new file, as Create<T>(Stream, AvroSchema, AvroWriteAction<T>, AvroFileWriterOptions?) writes it.

See Also