Skip to main content

LikeKernel

Trait LikeKernel 

Source
pub trait LikeKernel: VTable {
    // Required method
    fn like(
        array: &Self::Array,
        pattern: &dyn Array,
        options: LikeOptions,
        ctx: &mut ExecutionCtx,
    ) -> VortexResult<Option<ArrayRef>>;
}
Expand description

Like pattern matching on an array, potentially reading buffers.

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

Dispatch is on child 0 (the input). The pattern and options are extracted from the parent ScalarFnArray.

Required Methods§

Source

fn like( array: &Self::Array, pattern: &dyn Array, options: LikeOptions, 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§