arrow_array::array::primitive_array

Type Alias IntervalYearMonthArray

Source
pub type IntervalYearMonthArray = PrimitiveArray<IntervalYearMonthType>;
Expand description

A PrimitiveArray of “calendar” intervals in whole months

See IntervalYearMonthType for details on representation and caveats.

§Example

let array = IntervalYearMonthArray::from(vec![
  2,  // 2 months
  25, // 2 years and 1 month
  -1  // -1 months
]);

Aliased Type§

struct IntervalYearMonthArray {
    data_type: DataType,
    values: ScalarBuffer<i32>,
    nulls: Option<NullBuffer>,
}

Fields§

§data_type: DataType§values: ScalarBuffer<i32>

Values data

§nulls: Option<NullBuffer>