pub trait ListContainsElementReduce: VTable {
// Required method
fn list_contains(
list: &ArrayRef,
element: ArrayView<'_, Self>,
options: &ListContainsOptions,
) -> 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 is the concrete element encoding, while the list (haystack) is passed as an
opaque &ArrayRef.
Return None if the operation cannot be resolved from metadata alone.
Required Methods§
fn list_contains( list: &ArrayRef, element: ArrayView<'_, Self>, options: &ListContainsOptions, ) -> VortexResult<Option<ArrayRef>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ListContainsElementReduce for Chunked
Pushes list_contains of a prepared set into each chunk of the needles.
impl ListContainsElementReduce for Chunked
Pushes list_contains of a prepared set into each chunk of the needles.
Each chunk gets a slice of the prepared set, which shares the one set, so that the set is built once for every chunk.
fn list_contains( list: &ArrayRef, needles: ArrayView<'_, Chunked>, options: &ListContainsOptions, ) -> VortexResult<Option<ArrayRef>>
Source§impl ListContainsElementReduce for Dict
Pushes list_contains of a prepared set into the values of a dictionary of needles.
impl ListContainsElementReduce for Dict
Pushes list_contains of a prepared set into the values of a dictionary of needles.
fn list_contains( list: &ArrayRef, needles: ArrayView<'_, Dict>, options: &ListContainsOptions, ) -> VortexResult<Option<ArrayRef>>
Source§impl ListContainsElementReduce for RunEnd
Pushes list_contains of a prepared set into the values of run-end encoded needles.
impl ListContainsElementReduce for RunEnd
Pushes list_contains of a prepared set into the values of run-end encoded needles.