pub trait ArrayChildren {
// Required methods
fn get(
&self,
index: usize,
dtype: &DType,
len: usize,
) -> VortexResult<ArrayRef>;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
To minimize the serialized form, arrays do not persist their own dtype and length. Instead,
parent arrays pass this information down during deserialization. This trait abstracts
over either a serialized crate::serde::ArrayParts
or the
in-memory crate::data::ArrayData
.