Type Alias arrow_array::array::GenericBinaryArray

source ·
pub type GenericBinaryArray<OffsetSize> = GenericByteArray<GenericBinaryType<OffsetSize>>;
Expand description

A GenericBinaryArray for storing [u8]

Aliased Type§

struct GenericBinaryArray<OffsetSize> { /* private fields */ }

Implementations§

source§

impl<OffsetSize: OffsetSizeTrait> GenericBinaryArray<OffsetSize>

source

pub const fn get_data_type() -> DataType

👎Deprecated: please use Self::DATA_TYPE instead

Get the data type of the array.

source

pub fn from_vec(v: Vec<&[u8]>) -> Self

Creates a GenericBinaryArray from a vector of byte slices

See also Self::from_iter_values

source

pub fn from_opt_vec(v: Vec<Option<&[u8]>>) -> Self

Creates a GenericBinaryArray from a vector of Optional (null) byte slices

source

pub fn take_iter<'a>( &'a self, indexes: impl Iterator<Item = Option<usize>> + 'a, ) -> impl Iterator<Item = Option<&[u8]>> + 'a

Returns an iterator that returns the values of array.value(i) for an iterator with each element i

source

pub unsafe fn take_iter_unchecked<'a>( &'a self, indexes: impl Iterator<Item = Option<usize>> + 'a, ) -> impl Iterator<Item = Option<&[u8]>> + 'a

Returns an iterator that returns the values of array.value(i) for an iterator with each element i

§Safety

caller must ensure that the indexes in the iterator are less than the array.len()

Trait Implementations§

source§

impl<OffsetSize: OffsetSizeTrait> From<GenericByteArray<GenericStringType<OffsetSize>>> for GenericBinaryArray<OffsetSize>

source§

fn from(value: GenericStringArray<OffsetSize>) -> Self

Converts to this type from the input type.
source§

impl<T: OffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>

source§

fn from(v: GenericListArray<T>) -> Self

Converts to this type from the input type.
source§

impl<OffsetSize: OffsetSizeTrait> From<Vec<&[u8]>> for GenericBinaryArray<OffsetSize>

source§

fn from(v: Vec<&[u8]>) -> Self

Converts to this type from the input type.
source§

impl<OffsetSize: OffsetSizeTrait> From<Vec<Option<&[u8]>>> for GenericBinaryArray<OffsetSize>

source§

fn from(v: Vec<Option<&[u8]>>) -> Self

Converts to this type from the input type.
source§

impl<OffsetSize: OffsetSizeTrait> PartialEq for GenericBinaryArray<OffsetSize>

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.