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
BinaryArrayor ‘LargeBinaryArray’ to ‘FixedSizeBinaryArray’. - cast_
byte_ 🔒container - Helper function to cast from one
ByteArrayTypeto 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
BinaryArrayor ‘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
ByteViewTypearray toByteArrayTypearray.