polars_arrow::array

Type Alias BinaryViewArray

Source
pub type BinaryViewArray = BinaryViewArrayGeneric<[u8]>;

Aliased Type§

struct BinaryViewArray { /* private fields */ }

Implementations§

Source§

impl BinaryViewArray

Source

pub fn validate_utf8(&self) -> PolarsResult<()>

Validate the underlying bytes on UTF-8.

Source

pub fn to_utf8view(&self) -> PolarsResult<Utf8ViewArray>

Source

pub unsafe fn to_utf8view_unchecked(&self) -> Utf8ViewArray

Convert BinaryViewArray to Utf8ViewArray without checking UTF-8.

§Safety

The caller must ensure the underlying data is valid UTF-8.

Trait Implementations§

Source§

impl<T: IntoBytes> ArrayFromIter<Option<T>> for BinaryViewArray

Source§

fn arr_from_iter<I: IntoIterator<Item = Option<T>>>(iter: I) -> Self

Source§

fn arr_from_iter_trusted<I>(iter: I) -> Self
where I: IntoIterator<Item = Option<T>>, I::IntoIter: TrustedLen,

Source§

fn try_arr_from_iter<E, I: IntoIterator<Item = Result<Option<T>, E>>>( iter: I, ) -> Result<Self, E>

Source§

fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
where I: IntoIterator<Item = Result<T, E>>, I::IntoIter: TrustedLen,

Source§

impl<T: IntoBytes> ArrayFromIter<T> for BinaryViewArray

Source§

fn arr_from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Source§

fn arr_from_iter_trusted<I>(iter: I) -> Self
where I: IntoIterator<Item = T>, I::IntoIter: TrustedLen,

Source§

fn try_arr_from_iter<E, I: IntoIterator<Item = Result<T, E>>>( iter: I, ) -> Result<Self, E>

Source§

fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
where I: IntoIterator<Item = Result<T, E>>, I::IntoIter: TrustedLen,

Source§

impl Debug for BinaryViewArray

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ParameterFreeDtypeStaticArray for BinaryViewArray

Source§

impl StaticArray for BinaryViewArray

Source§

type ValueT<'a> = &'a [u8]

Source§

type ZeroableValueT<'a> = Option<&'a [u8]>

Source§

type ValueIterT<'a> = ArrayValuesIter<'a, BinaryViewArrayGeneric<[u8]>>

Source§

unsafe fn value_unchecked(&self, idx: usize) -> Self::ValueT<'_>

Safety Read more
Source§

fn iter( &self, ) -> ZipValidity<Self::ValueT<'_>, Self::ValueIterT<'_>, BitmapIter<'_>>

Source§

fn values_iter(&self) -> Self::ValueIterT<'_>

Source§

fn with_validity_typed(self, validity: Option<Bitmap>) -> Self

Source§

fn full_null(length: usize, dtype: ArrowDataType) -> Self

Source§

fn full(length: usize, value: Self::ValueT<'_>, _dtype: ArrowDataType) -> Self

Source§

fn get(&self, idx: usize) -> Option<Self::ValueT<'_>>

Source§

unsafe fn get_unchecked(&self, idx: usize) -> Option<Self::ValueT<'_>>

Safety Read more
Source§

fn last(&self) -> Option<Self::ValueT<'_>>

Source§

fn value(&self, idx: usize) -> Self::ValueT<'_>

Source§

fn as_slice(&self) -> Option<&[Self::ValueT<'_>]>

Source§

fn from_vec(v: Vec<Self::ValueT<'_>>, dtype: ArrowDataType) -> Self

Source§

fn from_zeroable_vec( v: Vec<Self::ZeroableValueT<'_>>, dtype: ArrowDataType, ) -> Self