Table of Contents

Class AvroFileBlock

Namespace
AvroSharp.Containers
Assembly
AvroSharp.dll

One block of an object container file as stored: its objects encoded with Schema and compressed with Codec. TryReadBlock(out AvroFileBlock?) reads blocks without decoding them, and WriteBlock(AvroFileBlock, bool) writes them, so files are concatenated or recompressed without decoding their objects, as Apache Avro Java's DataFileStream.nextBlock and DataFileWriter.appendEncoded do.

public sealed class AvroFileBlock
Inheritance
AvroFileBlock
Inherited Members

Constructors

AvroFileBlock(AvroSchema, AvroCodec, long, ReadOnlyMemory<byte>)

Initializes a block. The data is not copied or checked.

Properties

Codec

Gets the codec Data is compressed with.

Count

Gets the number of objects in the block.

Data

Gets the objects, compressed with Codec, as stored in the file.

Schema

Gets the schema the objects are encoded with: the writer schema of the file the block is from.

See Also