arrow_array::array::primitive_array

Type Alias Decimal128Array

Source
pub type Decimal128Array = PrimitiveArray<Decimal128Type>;
Expand description

A PrimitiveArray of 128-bit fixed point decimals

§Examples

Construction

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

See PrimitiveArray for more information and examples

Aliased Type§

struct Decimal128Array {
    data_type: DataType,
    values: ScalarBuffer<i128>,
    nulls: Option<NullBuffer>,
}

Fields§

§data_type: DataType§values: ScalarBuffer<i128>

Values data

§nulls: Option<NullBuffer>