Class ParquetFileReader
- Namespace
- ParquetSharp
- Assembly
- ParquetSharp.dll
Opens and reads Parquet files.
public sealed class ParquetFileReader : IDisposable
- Inheritance
-
ParquetFileReader
- Implements
- Inherited Members
Constructors
ParquetFileReader(RandomAccessFile)
Create a new ParquetFileReader for reading from a specified RandomAccessFile
public ParquetFileReader(RandomAccessFile randomAccessFile)
Parameters
randomAccessFile
RandomAccessFileThe file to read
ParquetFileReader(RandomAccessFile, ReaderProperties?)
Create a new ParquetFileReader for reading from a specified RandomAccessFile
public ParquetFileReader(RandomAccessFile randomAccessFile, ReaderProperties? readerProperties)
Parameters
randomAccessFile
RandomAccessFileThe file to read
readerProperties
ReaderPropertiesThe ReaderProperties to use
Exceptions
- ArgumentNullException
Thrown if the file or its handle are null
ParquetFileReader(Stream, ReaderProperties?, bool)
Create a new ParquetFileReader for reading from a .NET stream
public ParquetFileReader(Stream stream, ReaderProperties? readerProperties, bool leaveOpen = false)
Parameters
stream
StreamThe stream to read
readerProperties
ReaderPropertiesConfigures the reader properties
leaveOpen
boolWhether to keep the stream open after the reader is closed
ParquetFileReader(Stream, bool)
Create a new ParquetFileReader for reading from a .NET stream
public ParquetFileReader(Stream stream, bool leaveOpen = false)
Parameters
stream
StreamThe stream to read
leaveOpen
boolWhether to keep the stream open after the reader is closed
ParquetFileReader(string)
Create a new ParquetFileReader for reading from a file at the specified path
public ParquetFileReader(string path)
Parameters
path
stringPath to the Parquet file
ParquetFileReader(string, ReaderProperties?)
Create a new ParquetFileReader for reading from a file at the specified path
public ParquetFileReader(string path, ReaderProperties? readerProperties)
Parameters
path
stringPath to the Parquet file
readerProperties
ReaderPropertiesA ReaderProperties object that configures the reader
Exceptions
- ArgumentNullException
Thrown if the path is null
Properties
FileMetaData
Metadata associated with the Parquet file.
public FileMetaData FileMetaData { get; }
Property Value
LogicalReadConverterFactory
The LogicalReadConverterFactory for reading custom types.
public LogicalReadConverterFactory LogicalReadConverterFactory { get; set; }
Property Value
LogicalTypeFactory
The LogicalTypeFactory for handling custom types.
public LogicalTypeFactory LogicalTypeFactory { get; set; }
Property Value
Methods
Close()
public void Close()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
RowGroup(int)
Get a RowGroupReader for the specified row group index.
public RowGroupReader RowGroup(int i)
Parameters
i
intThe row group index
Returns
- RowGroupReader
A RowGroupReader for the specified row group index