Expand description
Check Arrow arrays against Parquet bloom filters
Re-exportsยง
use arrow_array::builder::BooleanBuilder;๐use arrow_array::cast::AsArray;๐use arrow_array::types::Float32Type;๐use arrow_array::types::Float64Type;๐use arrow_array::types::RunEndIndexType;๐use arrow_array::Array;๐use arrow_array::BooleanArray;๐use arrow_array::RunArray;๐use arrow_array::downcast_run_array;๐use arrow_buffer::ArrowNativeType;๐use arrow_buffer::BooleanBuffer;๐use arrow_schema::DataType;๐use arrow_schema::Field;๐use crate::arrow::arrow_writer::FixedLenByteArrayVisitor;๐use crate::arrow::arrow_writer::PrimitiveVisitor;๐use crate::arrow::arrow_writer::visit_fixed_len_byte_array;๐use crate::arrow::arrow_writer::visit_i32;๐use crate::arrow::arrow_writer::visit_i64;๐use crate::arrow::schema::arrow_to_parquet_type;๐use crate::basic::ConvertedType;๐use crate::basic::LogicalType;๐use crate::basic::TimeUnit;๐use crate::basic::Type as PhysicalType;๐use crate::bloom_filter::Sbbf;๐use crate::data_type::AsBytes;๐use crate::errors::ParquetError;๐use crate::errors::Result;๐use crate::schema::types::ColumnDescriptor;๐use crate::schema::types::Type;๐
Structsยง
- Arrow
Sbbf - A Parquet bloom filter (
Sbbf) that can be checked with Arrow arrays - Check
Fixed ๐LenByte Array - Checks the
FIXED_LEN_BYTE_ARRAYvalues passed to it against a bloom filter - Check
Primitive ๐ - Checks the
INT32,INT64,FLOATorDOUBLEvalues passed to it against a bloom filter
Functionsยง
- check_
byte_ ๐array - Checks the values of a
BYTE_ARRAYcolumn, which are stored as they are - check_
bytes ๐ - decimal_
scale ๐ - Returns the scale of a decimal type, or
Noneiftis not a decimal - describe ๐
- Describes the parts of
columnโs type that determine how its values are stored - is_
stored_ ๐as - Returns whether values written to a column of type
writtencan be checked against the bloom filter of a column of typecolumn - time_
unit ๐ - Returns the unit of a
TIMEorTIMESTAMPtype, orNoneifthas no unit - type_
length ๐ - type_
mismatch ๐ - validate ๐
- Returns an error unless
ArrowWriterstores values ofarrow_typein the same way as values ofcolumn, so that they can be checked against its bloom filter - value_
type ๐ - Returns the type of the values of a dictionary or run-end encoded
data_type, ordata_typeitself