arrow_array::array

Type Alias Int8Array

Source
pub type Int8Array = PrimitiveArray<Int8Type>;
Expand description

A PrimitiveArray of i8

§Examples

Construction

// Create from Vec<Option<i8>>
let arr = Int8Array::from(vec![Some(1), None, Some(2)]);
// Create from Vec<i8>
let arr = Int8Array::from(vec![1, 2, 3]);
// Create iter/collect
let arr: Int8Array = std::iter::repeat(42).take(10).collect();

See PrimitiveArray for more information and examples

Aliased Type§

struct Int8Array {
    data_type: DataType,
    values: ScalarBuffer<i8>,
    nulls: Option<NullBuffer>,
}

Fields§

§data_type: DataType§values: ScalarBuffer<i8>

Values data

§nulls: Option<NullBuffer>