Table of Contents

Class ReaderProperties

Namespace
ParquetSharp
Assembly
ParquetSharp.dll

Configures options for reading Parquet files.

public sealed class ReaderProperties : IDisposable
Inheritance
ReaderProperties
Implements
Inherited Members

Properties

BufferSize

The size of the buffer (in bytes) used for the buffered stream. This has no effect when the buffered stream is disabled.

public long BufferSize { get; set; }

Property Value

long

FileDecryptionProperties

The FileDecryptionProperties used for reading encrypted files.

public FileDecryptionProperties? FileDecryptionProperties { get; set; }

Property Value

FileDecryptionProperties

IsBufferedStreamEnabled

Whether a buffered stream is used for reading.

This limits the size of reads from the underlying file to limit memory usage in resource constrained environments. Using a buffered stream is disabled by default. Note that this has no effect when reading as Arrow data and PreBuffer is enabled.

public bool IsBufferedStreamEnabled { get; }

Property Value

bool

PageChecksumVerification

Whether page checksums are verified during reading to check for data corruption

public bool PageChecksumVerification { get; }

Property Value

bool

Methods

DisableBufferedStream()

Disable using a buffered stream for reading.

public void DisableBufferedStream()

DisablePageChecksumVerification()

Disable page checksum verification during reading to check for data corruption

public void DisablePageChecksumVerification()

Dispose()

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

public void Dispose()

EnableBufferedStream()

Enable using a buffered stream for reading.

This limits the size of reads from the underlying file to limit memory usage in resource constrained environments. The size of the buffer can be controlled with the BufferSize parameter. Note that this has no effect when reading as Arrow data and PreBuffer is enabled.

public void EnableBufferedStream()

EnablePageChecksumVerification()

Enable page checksum verification during reading to check for data corruption

public void EnablePageChecksumVerification()

GetDefaultReaderProperties()

Create a new ReaderProperties with default values.

public static ReaderProperties GetDefaultReaderProperties()

Returns

ReaderProperties

A new ReaderProperties object with default values.