arrow_array::arrayType Alias Int32RunArray
Source pub type Int32RunArray = RunArray<Int32Type>;
Expand description
A RunArray
with i32
run ends
§Example: Using collect
let array: Int32RunArray = 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);
struct Int32RunArray {
data_type: DataType,
run_ends: RunEndBuffer<i32>,
values: Arc<dyn Array>,
}