Skip to main content

ZipReduce

Trait ZipReduce 

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

Zip two arrays using a mask without reading buffers.

This trait is for zip implementations that can operate purely on array metadata and structure without needing to read or execute on the underlying buffers. Implementations should return None if the operation requires buffer access.

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, ) -> 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§