Struct arrow::array::GenericBinaryArray
source · [−]pub struct GenericBinaryArray<OffsetSize: BinaryOffsetSizeTrait> { /* private fields */ }
Expand description
See BinaryArray
and LargeBinaryArray
for storing
binary data.
Implementations
Returns the length for value at index i
.
Returns a clone of the value data buffer
Returns the offset values in the offsets buffer
Returns the element at index i
as bytes slice
Safety
Caller is responsible for ensuring that the index is within the bounds of the array
Returns the element at index i
as bytes slice
Creates a GenericBinaryArray from a vector of byte slices
See also Self::from_iter_values
Creates a GenericBinaryArray from a vector of Optional (null) byte slices
pub fn from_iter_values<Ptr, I>(iter: I) -> Self where
Ptr: AsRef<[u8]>,
I: IntoIterator<Item = Ptr>,
pub fn from_iter_values<Ptr, I>(iter: I) -> Self where
Ptr: AsRef<[u8]>,
I: IntoIterator<Item = Ptr>,
Creates a GenericBinaryArray
based on an iterator of values without nulls
pub fn iter(&'a self) -> GenericBinaryIter<'a, T>ⓘNotable traits for GenericBinaryIter<'a, T>impl<'a, T: BinaryOffsetSizeTrait> Iterator for GenericBinaryIter<'a, T> type Item = Option<&'a [u8]>;
pub fn iter(&'a self) -> GenericBinaryIter<'a, T>ⓘNotable traits for GenericBinaryIter<'a, T>impl<'a, T: BinaryOffsetSizeTrait> Iterator for GenericBinaryIter<'a, T> type Item = Option<&'a [u8]>;
impl<'a, T: BinaryOffsetSizeTrait> Iterator for GenericBinaryIter<'a, T> type Item = Option<&'a [u8]>;
constructs a new iterator
Trait Implementations
Returns a reference-counted pointer to the underlying data of this array.
Returns a zero-copy slice of this array with the indicated offset and length. Read more
Returns the offset into the underlying data used by this array(-slice).
Note that the underlying data can be shared by many arrays.
This defaults to 0
. Read more
Returns whether the element at index
is null.
When using this function on a slice, the index is relative to the slice. Read more
Returns whether the element at index
is not null.
When using this function on a slice, the index is relative to the slice. Read more
Returns the total number of null values in this array. Read more
Returns the total number of bytes of memory pointed to by this array. The buffers store bytes in the Arrow memory format, and include the data as well as the validity map. Read more
Returns the total number of bytes of memory occupied physically by this array.
This value will always be greater than returned by get_buffer_memory_size()
and
includes the overhead of the data structures that contain the pointers to the various buffers. Read more
returns two pointers that represent this array in the C Data Interface (FFI)
Performs the conversion.
impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<&'_ [u8], Global>> for GenericBinaryArray<OffsetSize>
impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<&'_ [u8], Global>> for GenericBinaryArray<OffsetSize>
impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<Option<&'_ [u8]>, Global>> for GenericBinaryArray<OffsetSize>
impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<Option<&'_ [u8]>, Global>> for GenericBinaryArray<OffsetSize>
impl<Ptr, OffsetSize: BinaryOffsetSizeTrait> FromIterator<Option<Ptr>> for GenericBinaryArray<OffsetSize> where
Ptr: AsRef<[u8]>,
impl<Ptr, OffsetSize: BinaryOffsetSizeTrait> FromIterator<Option<Ptr>> for GenericBinaryArray<OffsetSize> where
Ptr: AsRef<[u8]>,
Creates a value from an iterator. Read more