Skip to main content

Module binary

Module binary 

Source
Expand description

Cast support for binary, fixed-size binary and byte-view arrays.

Re-exports§

use arrow_buffer::Buffer; 🔒
use arrow_buffer::OffsetBuffer; 🔒
use arrow_data::ArrayData; 🔒
use arrow_data::ByteView; 🔒
use arrow_schema::ArrowError; 🔒
use arrow_schema::DataType; 🔒
use num_traits::NumCast; 🔒
use num_traits::ToPrimitive; 🔒
use std::sync::Arc; 🔒
use super::CastOptions; 🔒
use arrow_array::builder::*; 🔒
use arrow_array::cast::*; 🔒
use arrow_array::types::*; 🔒
use arrow_array::*; 🔒

Functions§

cast_binary_to_fixed_size_binary 🔒
Helper function to cast from one BinaryArray or ‘LargeBinaryArray’ to ‘FixedSizeBinaryArray’.
cast_byte_container 🔒
Helper function to cast from one ByteArrayType to another and vice versa. If the target one (e.g., LargeUtf8) is too large for the source array it will return an Error.
cast_fixed_size_binary_to_binary 🔒
Helper function to cast from ‘FixedSizeBinaryArray’ to one BinaryArray or ‘LargeBinaryArray’. If the target one is too large for the source array it will return an Error.
cast_fixed_size_binary_to_binary_view 🔒
cast_numeric_to_binary 🔒
cast_view_to_byte 🔒
Helper function to cast from one ByteViewType array to ByteArrayType array.