arrow_array::array::run_array

Type Alias Int16RunArray

Source
pub type Int16RunArray = RunArray<Int16Type>;
Expand description

A RunArray with i16 run ends

§Example: Using collect


let array: Int16RunArray = vec!["a", "a", "b", "c", "c"].into_iter().collect();
let values: Arc<dyn Array> = Arc::new(StringArray::from(vec!["a", "b", "c"]));
assert_eq!(array.run_ends().values(), &[2, 3, 5]);
assert_eq!(array.values(), &values);

Aliased Type§

struct Int16RunArray {
    data_type: DataType,
    run_ends: RunEndBuffer<i16>,
    values: Arc<dyn Array>,
}

Fields§

§data_type: DataType§run_ends: RunEndBuffer<i16>§values: Arc<dyn Array>