Table of Contents

Class FileReadSource

Namespace
Plank.Reading
Assembly
Plank.dll

Provides random-access reads over a file-backed Parquet source without allocating a FileStream.

public sealed class FileReadSource : IParquetReadSource, IDisposable
Inheritance
FileReadSource
Implements
Inherited Members

Constructors

FileReadSource(string)

public FileReadSource(string path)

Parameters

path string

Properties

Length

Gets the source length in bytes.

public ulong Length { get; }

Property Value

ulong

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

ReadExactly(ulong, Span<byte>)

Reads bytes from the source at the specified offset until the destination is filled.

public void ReadExactly(ulong offset, Span<byte> destination)

Parameters

offset ulong

The zero-based source offset to read from.

destination Span<byte>

The destination buffer to fill.