Skip to main content

ListContainsElementReduce

Trait ListContainsElementReduce 

Source
pub trait ListContainsElementReduce: VTable {
    // Required method
    fn list_contains(
        list: &dyn Array,
        element: &Self::Array,
    ) -> VortexResult<Option<ArrayRef>>;
}
Expand description

Check list-contains without reading buffers (metadata-only).

This trait dispatches on the element (needle) child at index 1 of the ListContains expression. Self::Array is the concrete element encoding, while the list (haystack) is passed as an opaque &dyn Array.

A future ListContainsListReduce could dispatch on the list side (child 0) for encodings with specialized list representations.

Return None if the operation cannot be resolved from metadata alone.

Required Methods§

Source

fn list_contains( list: &dyn Array, element: &Self::Array, ) -> 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§