ReduceParent

Trait ReduceParent 

Source
pub trait ReduceParent<Parent: VTable, const CHILD_IDX: usize>: VTable {
    // Required method
    fn reduce_parent(
        array: &Self::Array,
        parent: &Parent::Array,
    ) -> VortexResult<Option<ArrayRef>>;
}
Expand description

An optimizer rule that tries to reduce/replace a parent array where the implementer is a child array in the CHILD_IDX position of the parent array.

Required Methods§

Source

fn reduce_parent( array: &Self::Array, parent: &Parent::Array, ) -> VortexResult<Option<ArrayRef>>

Try to reduce/replace the given parent array based on this child array.

If no reduction is possible, return None.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§