Expand description
Decoding a column chunkβs dictionary page directly into an Arrow array,
independent of the row-by-row ArrayReader machinery.
This is useful for callers that want the set of distinct values stored in a dictionary-encoded column chunk without reading any data pages, e.g. to prune a row group when the query predicateβs literals are known not to be in the dictionary.
Re-exportsΒ§
use crate::arrow::ByteArrayDecoderPlain;πuse crate::arrow::OffsetBuffer;πuse crate::basic::Encoding;πuse crate::basic::PageType;πuse crate::basic::Type as PhysicalType;πuse crate::column::page::Page;πuse crate::compression::CodecOptions;πuse crate::compression::create_codec;πuse crate::encryption::decrypt::CryptoContext;πuse crate::errors::ParquetError;πuse crate::errors::Result;πuse crate::file::metadata::ColumnChunkMetaData;πuse crate::file::metadata::ParquetMetaData;πuse crate::file::serialized_reader::SerializedPageReaderContext;πuse crate::file::serialized_reader::decode_page;πuse crate::file::serialized_reader::read_page_header_len_from_bytes;πuse crate::file::serialized_reader::verify_page_size;πuse arrow_array::ArrayRef;πuse arrow_schema::DataType as ArrowType;πuse bytes::Bytes;πuse std::sync::Arc;π
FunctionsΒ§
- decode_
dictionary_ πpage - Decodes the dictionary page of a column chunk into an [
ArrayRef]. - dictionary_
page_ πcrypto_ context - Builds the crypto context needed to decrypt the dictionary page of
column_metadata, orNoneif the file (or this column) isnβt encrypted.