arrow_array::array::primitive_array

Type Alias Int16Array

Source
pub type Int16Array = PrimitiveArray<Int16Type>;
Expand description

A PrimitiveArray of i16

§Examples

Construction

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

See PrimitiveArray for more information and examples

Aliased Type§

struct Int16Array {
    data_type: DataType,
    values: ScalarBuffer<i16>,
    nulls: Option<NullBuffer>,
}

Fields§

§data_type: DataType§values: ScalarBuffer<i16>

Values data

§nulls: Option<NullBuffer>