Type Definition arrow_array::array::GenericBinaryArray
source · pub type GenericBinaryArray<OffsetSize> = GenericByteArray<GenericBinaryType<OffsetSize>>;
Expand description
See BinaryArray
and LargeBinaryArray
for storing
binary data.
Implementations
sourceimpl<OffsetSize: OffsetSizeTrait> GenericBinaryArray<OffsetSize>
impl<OffsetSize: OffsetSizeTrait> GenericBinaryArray<OffsetSize>
sourcepub const fn get_data_type() -> DataType
👎Deprecated: please use Self::DATA_TYPE
instead
pub const fn get_data_type() -> DataType
Self::DATA_TYPE
insteadGet the data type of the array.
sourcepub fn from_vec(v: Vec<&[u8]>) -> Self
pub fn from_vec(v: Vec<&[u8]>) -> Self
Creates a GenericBinaryArray from a vector of byte slices
See also Self::from_iter_values
sourcepub fn from_opt_vec(v: Vec<Option<&[u8]>>) -> Self
pub fn from_opt_vec(v: Vec<Option<&[u8]>>) -> Self
Creates a GenericBinaryArray from a vector of Optional (null) byte slices
sourcepub fn from_iter_values<Ptr, I>(iter: I) -> Selfwhere
Ptr: AsRef<[u8]>,
I: IntoIterator<Item = Ptr>,
pub fn from_iter_values<Ptr, I>(iter: I) -> Selfwhere
Ptr: AsRef<[u8]>,
I: IntoIterator<Item = Ptr>,
Creates a GenericBinaryArray
based on an iterator of values without nulls
sourcepub fn take_iter<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a
) -> impl Iterator<Item = Option<&'_ [u8]>> + 'a
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
sourcepub unsafe fn take_iter_unchecked<'a>(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a
) -> impl Iterator<Item = Option<&'_ [u8]>> + 'a
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
sourceimpl<T: OffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>
impl<T: OffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>
sourcefn from(v: GenericListArray<T>) -> Self
fn from(v: GenericListArray<T>) -> Self
Converts to this type from the input type.
sourceimpl<OffsetSize: OffsetSizeTrait> From<Vec<&[u8], Global>> for GenericBinaryArray<OffsetSize>
impl<OffsetSize: OffsetSizeTrait> From<Vec<&[u8], Global>> for GenericBinaryArray<OffsetSize>
sourceimpl<OffsetSize: OffsetSizeTrait> From<Vec<Option<&[u8]>, Global>> for GenericBinaryArray<OffsetSize>
impl<OffsetSize: OffsetSizeTrait> From<Vec<Option<&[u8]>, Global>> for GenericBinaryArray<OffsetSize>
sourceimpl<Ptr, OffsetSize: OffsetSizeTrait> FromIterator<Option<Ptr>> for GenericBinaryArray<OffsetSize>where
Ptr: AsRef<[u8]>,
impl<Ptr, OffsetSize: OffsetSizeTrait> FromIterator<Option<Ptr>> for GenericBinaryArray<OffsetSize>where
Ptr: AsRef<[u8]>,
sourcefn from_iter<I: IntoIterator<Item = Option<Ptr>>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Option<Ptr>>>(iter: I) -> Self
Creates a value from an iterator. Read more