arrow_array::array::primitive_array

Type Alias IntervalDayTimeArray

Source
pub type IntervalDayTimeArray = PrimitiveArray<IntervalDayTimeType>;
Expand description

A PrimitiveArray of “calendar” intervals in days and milliseconds

See IntervalDayTime for details on representation and caveats.

§Example

use arrow_array::types::IntervalDayTime;
let array = IntervalDayTimeArray::from(vec![
  IntervalDayTime::new(1, 1000),                 // 1 day, 1000 milliseconds
  IntervalDayTime::new(33, 0),                  // 33 days, 0 milliseconds
  IntervalDayTime::new(0, 12 * 60 * 60 * 1000), // 0 days, 12 hours
]);

Aliased Type§

struct IntervalDayTimeArray {
    data_type: DataType,
    values: ScalarBuffer<IntervalDayTime>,
    nulls: Option<NullBuffer>,
}

Fields§

§data_type: DataType§values: ScalarBuffer<IntervalDayTime>

Values data

§nulls: Option<NullBuffer>