Skip to main content

ZipKernel

Trait ZipKernel 

Source
pub trait ZipKernel: VTable {
    // Required method
    fn zip(
        array: &Self::Array,
        if_false: &dyn Array,
        mask: &Mask,
        ctx: &mut ExecutionCtx,
    ) -> VortexResult<Option<ArrayRef>>;
}
Expand description

Zip two arrays using a mask, potentially reading buffers.

Unlike ZipReduce, this trait is for zip implementations that may need to read and execute on the underlying buffers to produce the result.

Dispatch is on child 0 (if_true). The if_false and mask are extracted from the parent ScalarFnArray.

Required Methods§

Source

fn zip( array: &Self::Array, if_false: &dyn Array, mask: &Mask, ctx: &mut ExecutionCtx, ) -> VortexResult<Option<ArrayRef>>

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§