[][src]Struct arrow::array::BinaryArray

pub struct BinaryArray { /* fields omitted */ }

A special type of ListArray whose elements are binaries.

Methods

impl BinaryArray
[src]

pub fn value(&self, i: usize) -> &[u8]
[src]

Returns the element at index i as a byte slice.

pub fn get_string(&self, i: usize) -> String
[src]

Returns the element at index i as a string.

Note this doesn't do any bound checking, for performance reason.

pub fn value_offset(&self, i: usize) -> i32
[src]

Returns the offset for the element at index i.

Note this doesn't do any bound checking, for performance reason.

pub fn value_length(&self, i: usize) -> i32
[src]

Returns the length for the element at index i.

Note this doesn't do any bound checking, for performance reason.

Trait Implementations

impl Array for BinaryArray
[src]

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

Returns a reference to the data type of this array

fn len(&self) -> usize
[src]

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

fn offset(&self) -> usize
[src]

Returns the offset of this array

fn is_null(&self, i: usize) -> bool
[src]

Returns whether the element at index i is null

fn is_valid(&self, i: usize) -> bool
[src]

Returns whether the element at index i is not null

fn null_count(&self) -> usize
[src]

Returns the total number of nulls in this array

impl From<Arc<ArrayData>> for BinaryArray
[src]

impl<'a> From<Vec<&'a str>> for BinaryArray
[src]

impl From<ListArray> for BinaryArray
[src]

Creates a BinaryArray from List<u8> array

Auto Trait Implementations

impl Send for BinaryArray

impl Sync for BinaryArray

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.