Type Alias polars_arrow::array::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

§

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

§

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

§

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