arrow_array::array::primitive_array

Type Alias IntervalMonthDayNanoArray

Source
pub type IntervalMonthDayNanoArray = PrimitiveArray<IntervalMonthDayNanoType>;
Expand description

A PrimitiveArray of “calendar” intervals in months, days, and nanoseconds.

See IntervalMonthDayNano for details on representation and caveats.

§Example

use arrow_array::types::IntervalMonthDayNano;
let array = IntervalMonthDayNanoArray::from(vec![
  IntervalMonthDayNano::new(1, 2, 1000),             // 1 month, 2 days, 1 nanosecond
  IntervalMonthDayNano::new(12, 1, 0),               // 12 months, 1 days, 0 nanoseconds
  IntervalMonthDayNano::new(0, 0, 12 * 1000 * 1000), // 0 days, 12 milliseconds
]);

Aliased Type§

struct IntervalMonthDayNanoArray {
    data_type: DataType,
    values: ScalarBuffer<IntervalMonthDayNano>,
    nulls: Option<NullBuffer>,
}

Fields§

§data_type: DataType§values: ScalarBuffer<IntervalMonthDayNano>

Values data

§nulls: Option<NullBuffer>