[][src]Struct arrow::array::PrimitiveArray

pub struct PrimitiveArray<T: ArrowPrimitiveType> { /* fields omitted */ }

Array whose elements are of primitive types.

Methods

impl<T: ArrowNumericType> PrimitiveArray<T>
[src]

Implementation for primitive arrays with numeric types. Boolean arrays are bit-packed and so implemented separately.

Returns a Buffer holds all the values of this array.

Note this doesn't take account into the offset of this array.

Returns the length of this array

Returns a raw pointer to the values of this array.

Returns the primitive value at index i.

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

Returns a slice for the given offset and length

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

impl PrimitiveArray<BooleanType>
[src]

Specific implementation for Boolean arrays due to bit-packing

Returns a Buffer holds all the values of this array.

Note this doesn't take account into the offset of this array.

Returns the boolean value at index i.

Trait Implementations

impl<T: ArrowPrimitiveType> Array for PrimitiveArray<T>
[src]

Returns a reference to the data type of this array

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

Returns the offset of this array

Returns whether the element at index i is null

Returns whether the element at index i is not null

Returns the total number of nulls in this array

impl From<Vec<i8>> for PrimitiveArray<Int8Type>
[src]

impl From<Vec<Option<i8>>> for PrimitiveArray<Int8Type>
[src]

impl From<Vec<i16>> for PrimitiveArray<Int16Type>
[src]

impl From<Vec<Option<i16>>> for PrimitiveArray<Int16Type>
[src]

impl From<Vec<i32>> for PrimitiveArray<Int32Type>
[src]

impl From<Vec<Option<i32>>> for PrimitiveArray<Int32Type>
[src]

impl From<Vec<i64>> for PrimitiveArray<Int64Type>
[src]

impl From<Vec<Option<i64>>> for PrimitiveArray<Int64Type>
[src]

impl From<Vec<u8>> for PrimitiveArray<UInt8Type>
[src]

impl From<Vec<Option<u8>>> for PrimitiveArray<UInt8Type>
[src]

impl From<Vec<u16>> for PrimitiveArray<UInt16Type>
[src]

impl From<Vec<Option<u16>>> for PrimitiveArray<UInt16Type>
[src]

impl From<Vec<u32>> for PrimitiveArray<UInt32Type>
[src]

impl From<Vec<Option<u32>>> for PrimitiveArray<UInt32Type>
[src]

impl From<Vec<u64>> for PrimitiveArray<UInt64Type>
[src]

impl From<Vec<Option<u64>>> for PrimitiveArray<UInt64Type>
[src]

impl From<Vec<f32>> for PrimitiveArray<Float32Type>
[src]

impl From<Vec<Option<f32>>> for PrimitiveArray<Float32Type>
[src]

impl From<Vec<f64>> for PrimitiveArray<Float64Type>
[src]

impl From<Vec<Option<f64>>> for PrimitiveArray<Float64Type>
[src]

impl<T: ArrowPrimitiveType> From<Arc<ArrayData>> for PrimitiveArray<T>
[src]

Constructs a PrimitiveArray from an array data reference.

Auto Trait Implementations

impl<T> Send for PrimitiveArray<T>

impl<T> Sync for PrimitiveArray<T>

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]

🔬 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]

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

The type returned in the event of a conversion error.