pub trait DynParentKernel<V: VTable>: Send + Sync {
// Required methods
fn matches(&self, parent: &ArrayRef) -> bool;
fn execute_parent(
&self,
child: &V::Array,
parent: &ArrayRef,
child_idx: usize,
ctx: &mut ExecutionCtx,
) -> VortexResult<Option<ArrayRef>>;
}Expand description
Type-erased version of ExecuteParentKernel used for dynamic dispatch within
ParentKernelSet.
Required Methods§
Sourcefn matches(&self, parent: &ArrayRef) -> bool
fn matches(&self, parent: &ArrayRef) -> bool
Returns true if this kernel’s parent Matcher matches the given parent array.
Sourcefn execute_parent(
&self,
child: &V::Array,
parent: &ArrayRef,
child_idx: usize,
ctx: &mut ExecutionCtx,
) -> VortexResult<Option<ArrayRef>>
fn execute_parent( &self, child: &V::Array, parent: &ArrayRef, child_idx: usize, ctx: &mut ExecutionCtx, ) -> VortexResult<Option<ArrayRef>>
Attempt to execute the parent array fused with the child array.