Struct arrow::array::GenericBinaryArray [−][src]
pub struct GenericBinaryArray<OffsetSize: BinaryOffsetSizeTrait> { /* fields omitted */ }
Implementations
impl<OffsetSize: BinaryOffsetSizeTrait> GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> GenericBinaryArray<OffsetSize>
[src]pub fn value_length(&self, i: usize) -> OffsetSize
[src]
pub fn value_length(&self, i: usize) -> OffsetSize
[src]Returns the length for value at index i
.
pub fn value_data(&self) -> Buffer
[src]
pub fn value_data(&self) -> Buffer
[src]Returns a clone of the value data buffer
pub fn value_offsets(&self) -> &[OffsetSize]ⓘ
[src]
pub fn value_offsets(&self) -> &[OffsetSize]ⓘ
[src]Returns the offset values in the offsets buffer
pub unsafe fn value_unchecked(&self, i: usize) -> &[u8]ⓘ
[src]
pub unsafe fn value_unchecked(&self, i: usize) -> &[u8]ⓘ
[src]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
pub fn from_vec(v: Vec<&[u8]>) -> Self
[src]
pub fn from_vec(v: Vec<&[u8]>) -> Self
[src]Creates a GenericBinaryArray from a vector of byte slices
pub fn from_opt_vec(v: Vec<Option<&[u8]>>) -> Self
[src]
pub fn from_opt_vec(v: Vec<Option<&[u8]>>) -> Self
[src]Creates a GenericBinaryArray from a vector of Optional (null) byte slices
impl<'a, T: BinaryOffsetSizeTrait> GenericBinaryArray<T>
[src]
impl<'a, T: BinaryOffsetSizeTrait> GenericBinaryArray<T>
[src]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]>;
[src]
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]>;
[src]constructs a new iterator
Trait Implementations
impl<OffsetSize: BinaryOffsetSizeTrait> Array for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> Array for GenericBinaryArray<OffsetSize>
[src]fn get_buffer_memory_size(&self) -> usize
[src]
fn get_buffer_memory_size(&self) -> usize
[src]Returns the total number of bytes of memory occupied by the buffers owned by this [$name].
fn get_array_memory_size(&self) -> usize
[src]
fn get_array_memory_size(&self) -> usize
[src]Returns the total number of bytes of memory occupied physically by this [$name].
fn data_ref(&self) -> &ArrayData
[src]
fn data_ref(&self) -> &ArrayData
[src]Returns a reference-counted pointer to the underlying data of this array.
fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]
fn slice(&self, offset: usize, length: usize) -> ArrayRef
[src]Returns a zero-copy slice of this array with the indicated offset and length. Read more
fn offset(&self) -> usize
[src]
fn offset(&self) -> usize
[src]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
fn is_null(&self, index: usize) -> bool
[src]
fn is_null(&self, index: usize) -> bool
[src]Returns whether the element at index
is null.
When using this function on a slice, the index is relative to the slice. Read more
fn is_valid(&self, index: usize) -> bool
[src]
fn is_valid(&self, index: usize) -> bool
[src]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
fn null_count(&self) -> usize
[src]
fn null_count(&self) -> usize
[src]Returns the total number of null values in this array. Read more
fn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
[src]
fn to_raw(&self) -> Result<(*const FFI_ArrowArray, *const FFI_ArrowSchema)>
[src]returns two pointers that represent this array in the C Data Interface (FFI)
impl<OffsetSize: BinaryOffsetSizeTrait> Debug for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> Debug for GenericBinaryArray<OffsetSize>
[src]impl<OffsetSize: BinaryOffsetSizeTrait> From<ArrayData> for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> From<ArrayData> for GenericBinaryArray<OffsetSize>
[src]impl<T: BinaryOffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>
[src]
impl<T: BinaryOffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>
[src]fn from(v: GenericListArray<T>) -> Self
[src]
fn from(v: GenericListArray<T>) -> Self
[src]Performs the conversion.
impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<&'_ [u8], Global>> for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<&'_ [u8], Global>> for GenericBinaryArray<OffsetSize>
[src]impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<Option<&'_ [u8]>, Global>> for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<Option<&'_ [u8]>, Global>> for GenericBinaryArray<OffsetSize>
[src]impl<Ptr, OffsetSize: BinaryOffsetSizeTrait> FromIterator<Option<Ptr>> for GenericBinaryArray<OffsetSize> where
Ptr: AsRef<[u8]>,
[src]
impl<Ptr, OffsetSize: BinaryOffsetSizeTrait> FromIterator<Option<Ptr>> for GenericBinaryArray<OffsetSize> where
Ptr: AsRef<[u8]>,
[src]fn from_iter<I: IntoIterator<Item = Option<Ptr>>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = Option<Ptr>>>(iter: I) -> Self
[src]Creates a value from an iterator. Read more
impl<'a, T: BinaryOffsetSizeTrait> IntoIterator for &'a GenericBinaryArray<T>
[src]
impl<'a, T: BinaryOffsetSizeTrait> IntoIterator for &'a GenericBinaryArray<T>
[src]impl<OffsetSize: BinaryOffsetSizeTrait> JsonEqual for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> JsonEqual for GenericBinaryArray<OffsetSize>
[src]impl<OffsetSize: BinaryOffsetSizeTrait> PartialEq<GenericBinaryArray<OffsetSize>> for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> PartialEq<GenericBinaryArray<OffsetSize>> for GenericBinaryArray<OffsetSize>
[src]impl<OffsetSize: BinaryOffsetSizeTrait> PartialEq<Value> for GenericBinaryArray<OffsetSize>
[src]
impl<OffsetSize: BinaryOffsetSizeTrait> PartialEq<Value> for GenericBinaryArray<OffsetSize>
[src]Auto Trait Implementations
impl<OffsetSize> RefUnwindSafe for GenericBinaryArray<OffsetSize> where
OffsetSize: RefUnwindSafe,
OffsetSize: RefUnwindSafe,
impl<OffsetSize> Send for GenericBinaryArray<OffsetSize>
impl<OffsetSize> Sync for GenericBinaryArray<OffsetSize>
impl<OffsetSize> Unpin for GenericBinaryArray<OffsetSize>
impl<OffsetSize> UnwindSafe for GenericBinaryArray<OffsetSize> where
OffsetSize: RefUnwindSafe,
OffsetSize: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,