Trait ListLikeArray
pub trait ListLikeArray: Array {
// Required methods
fn values(&self) -> &Arc<dyn Array>;
fn element_range(&self, index: usize) -> Range<usize>;
}Expand description
A trait for Arrow list-like arrays, abstracting over
GenericListArray, GenericListViewArray, and FixedSizeListArray.
This trait provides a uniform interface for accessing the child values and computing the element range for a given index, regardless of the underlying list layout (offsets, offsets+sizes, or fixed-size).
Required Methods§
fn element_range(&self, index: usize) -> Range<usize>
fn element_range(&self, index: usize) -> Range<usize>
Returns the start and end indices into the values array for the list
element at index.