Expand description
Contains implementations of the reader traits FileReader, RowGroupReader and PageReader Also contains implementations of the ChunkReader for files (with buffering) and byte arrays (RAM)
Re-exportsΒ§
use crate::basic::PageType;πuse crate::basic::Type;πuse crate::bloom_filter::Sbbf;πuse crate::column::page::Page;πuse crate::column::page::PageMetadata;πuse crate::column::page::PageReader;πuse crate::compression::Codec;πuse crate::compression::create_codec;πuse crate::encryption::decrypt::CryptoContext;πuse crate::encryption::decrypt::read_and_decrypt;πuse crate::errors::ParquetError;πuse crate::errors::Result;πuse crate::file::metadata::page_index::RowGroupPageIndex;πuse crate::file::metadata::thrift::PageHeader;πuse crate::file::page_index::offset_index::PageLocation;πuse crate::file::statistics;πuse crate::file::properties::ReaderProperties;πuse crate::file::properties::ReaderPropertiesPtr;πuse crate::parquet_thrift::ThriftSliceInputProtocol;πuse crate::parquet_thrift::ReadThrift;πuse crate::parquet_thrift::ThriftReadInputProtocol;πuse crate::record::Row;πuse crate::record::reader::RowIter;πuse crate::schema::types::SchemaDescPtr;πuse crate::schema::types::Type as SchemaType;πuse bytes::Bytes;πuse std::collections::VecDeque;πuse std::fs::File;πuse std::io::Read;πuse std::path::Path;πuse std::sync::Arc;πuse crate::file::metadata::*;πuse crate::file::reader::*;π
StructsΒ§
- Read
Options - A collection of options for reading a Parquet file.
- Read
Options Builder - A builder for
ReadOptions. For the predicates that are added to the builder, they will be chained using βANDβ to filter the row groups. - Serialized
File Reader - A serialized implementation for Parquet
FileReader. - Serialized
Page Reader - A serialized implementation for Parquet
PageReader. - Serialized
Page πReader Context - Serialized
RowGroup Reader - A serialized implementation for Parquet
RowGroupReader.
EnumsΒ§
- Deferred
Dictionary πPage - Location of a dictionary page skipped without decoding.
- Serialized
Page πReader State
FunctionsΒ§
- decode_
page π - Decodes a
Pagefrom the providedbuffer - get_
midpoint_ πoffset - Get midpoint offset for a row group
- read_
page_ πheader_ len_ from_ bytes - Reads (and decrypts, if
contextcarries a crypto context) the page header stored at the front ofbuffer, returning the header and the number of bytes ofbufferit occupies. - verify_
page_ πheader_ len - verify_
page_ πsize
Type AliasesΒ§
- Read
Group Predicate - A predicate for filtering row groups, invoked with the metadata and index
of each row group in the file. Only row groups for which the predicate
evaluates to
truewill be scanned