Struct arrow::array::GenericBinaryArray[][src]

pub struct GenericBinaryArray<OffsetSize: BinaryOffsetSizeTrait> { /* fields omitted */ }

Implementations

impl<OffsetSize: BinaryOffsetSizeTrait> GenericBinaryArray<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]

Returns a clone of the value data buffer

pub fn value_offsets(&self) -> &[OffsetSize]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the offset values in the offsets buffer

pub unsafe fn value_unchecked(&self, i: usize) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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 value(&self, i: usize) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the element at index i as bytes slice

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]

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

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]

constructs a new iterator

Trait Implementations

impl<OffsetSize: BinaryOffsetSizeTrait> Array for GenericBinaryArray<OffsetSize>[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]

Returns the total number of bytes of memory occupied physically by this [$name].

fn as_any(&self) -> &dyn Any[src]

Returns the array as Any so that it can be downcasted to a specific implementation. Read more

fn data(&self) -> &ArrayData[src]

Returns a reference to the underlying data of this array.

fn data_ref(&self) -> &ArrayData[src]

Returns a reference-counted pointer to the underlying data of this array.

fn data_type(&self) -> &DataType[src]

Returns a reference to the DataType of this array. Read more

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 len(&self) -> usize[src]

Returns the length (i.e., number of elements) of this array. Read more

fn is_empty(&self) -> bool[src]

Returns whether this array is empty. Read more

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]

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]

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]

Returns the total number of null values in this array. Read more

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]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<OffsetSize: BinaryOffsetSizeTrait> From<ArrayData> for GenericBinaryArray<OffsetSize>[src]

fn from(data: ArrayData) -> Self[src]

Performs the conversion.

impl<T: BinaryOffsetSizeTrait> From<GenericListArray<T>> for GenericBinaryArray<T>[src]

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

Performs the conversion.

impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<&'_ [u8], Global>> for GenericBinaryArray<OffsetSize>[src]

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

Performs the conversion.

impl<OffsetSize: BinaryOffsetSizeTrait> From<Vec<Option<&'_ [u8]>, Global>> for GenericBinaryArray<OffsetSize>[src]

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

Performs the conversion.

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]

Creates a value from an iterator. Read more

impl<'a, T: BinaryOffsetSizeTrait> IntoIterator for &'a GenericBinaryArray<T>[src]

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

The type of the elements being iterated over.

type IntoIter = GenericBinaryIter<'a, T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<OffsetSize: BinaryOffsetSizeTrait> JsonEqual for GenericBinaryArray<OffsetSize>[src]

fn equals_json(&self, json: &[&Value]) -> bool[src]

Checks whether arrow array equals to json array.

fn equals_json_values(&self, json: &[Value]) -> bool[src]

Checks whether arrow array equals to json array.

impl<OffsetSize: BinaryOffsetSizeTrait> PartialEq<GenericBinaryArray<OffsetSize>> for GenericBinaryArray<OffsetSize>[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<OffsetSize: BinaryOffsetSizeTrait> PartialEq<Value> for GenericBinaryArray<OffsetSize>[src]

fn eq(&self, json: &Value) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

Auto Trait Implementations

impl<OffsetSize> RefUnwindSafe for GenericBinaryArray<OffsetSize> where
    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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V