Skip to main content

LikeReduce

Trait LikeReduce 

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

Like pattern matching on an array without reading buffers.

This trait is for like 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 (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, ) -> 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§