LayoutChildren

Trait LayoutChildren 

Source
pub trait LayoutChildren:
    'static
    + Send
    + Sync {
    // Required methods
    fn to_arc(&self) -> Arc<dyn LayoutChildren>;
    fn child(
        &self,
        idx: usize,
        dtype: &DType,
    ) -> Result<Arc<dyn Layout>, VortexError>;
    fn child_row_count(&self, idx: usize) -> u64;
    fn nchildren(&self) -> usize;
}
Expand description

Abstract way of accessing the children of a layout.

This allows us to abstract over the lazy flatbuffer-based layouts, as well as the in-memory layout trees.

Required Methods§

Source

fn to_arc(&self) -> Arc<dyn LayoutChildren>

Source

fn child( &self, idx: usize, dtype: &DType, ) -> Result<Arc<dyn Layout>, VortexError>

Source

fn child_row_count(&self, idx: usize) -> u64

Source

fn nchildren(&self) -> usize

Trait Implementations§

Source§

impl Debug for dyn LayoutChildren

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

Source§

impl LayoutChildren for Arc<dyn LayoutChildren>

Source§

fn to_arc(&self) -> Arc<dyn LayoutChildren>

Source§

fn child( &self, idx: usize, dtype: &DType, ) -> Result<Arc<dyn Layout>, VortexError>

Source§

fn child_row_count(&self, idx: usize) -> u64

Source§

fn nchildren(&self) -> usize

Implementors§