Skip to main content

Module variant_get

Module variant_get 

Source

Re-exportsΒ§

use arrow::array; πŸ”’
use arrow::array::Array; πŸ”’
use arrow::array::ArrayRef; πŸ”’
use arrow::array::GenericListArray; πŸ”’
use arrow::array::GenericListViewArray; πŸ”’
use arrow::array::ListLikeArray; πŸ”’
use arrow::array::StructArray; πŸ”’
use arrow::array::UInt64Array; πŸ”’
use arrow::array::make_array; πŸ”’
use arrow::buffer::NullBuffer; πŸ”’
use arrow::compute::CastOptions; πŸ”’
use arrow::compute::take; πŸ”’
use arrow::datatypes::Field; πŸ”’
use arrow::error::Result; πŸ”’
use arrow_schema::ArrowError; πŸ”’
use arrow_schema::DataType; πŸ”’
use arrow_schema::FieldRef; πŸ”’
use parquet_variant::Variant; πŸ”’
use parquet_variant::VariantMetadataView; πŸ”’
use parquet_variant::VariantPath; πŸ”’
use parquet_variant::VariantPathElement; πŸ”’
use parquet_variant::VariantView; πŸ”’
use crate::ShreddingState; πŸ”’
use crate::variant_array::BinaryColumn; πŸ”’
use crate::variant_array::all_null_value_column; πŸ”’
use crate::variant_to_arrow::make_variant_to_arrow_row_builder; πŸ”’
use crate::VariantArray; πŸ”’
use crate::VariantType; πŸ”’
use crate::unshred_variant; πŸ”’
use crate::unshred_variant; πŸ”’
use arrow::array::AsArray; πŸ”’
use std::sync::Arc; πŸ”’

StructsΒ§

GetOptions
Controls the action of the variant_get kernel.

EnumsΒ§

ShreddedPathStep πŸ”’

FunctionsΒ§

follow_list_like_index πŸ”’
Take one list-like element (at index) per input row as the next path step.
follow_shredded_path_element πŸ”’
Given a shredded variant field – a (value?, typed_value?) pair – try to take one path step deeper. For a VariantPathElement::Field, if there is no typed_value at this level, if typed_value is not a struct, or if the requested field name does not exist, traversal returns a missing-path step (Missing or NotShredded depending on whether value exists).
get_path_from_bytes πŸ”’
Extracts path from an unshredded variant column, reading each row’s encoded bytes directly.
requested_field_is_shredded πŸ”’
Returns true if as_field requests shredded Variant output.
row_value πŸ”’
Views a row of an unshredded variant column.
shredded_get_path πŸ”’
Follows the given path as far as possible through shredded variant fields. If the path ends on a shredded field, return it directly. Otherwise, use a row shredder to follow the rest of the path and extract the requested value on a per-row basis.
try_perfect_shredding πŸ”’
variant_get
Returns an array with the specified path extracted from the variant values.