pub trait FilterReduce: VTable {
// Required method
fn filter(
array: &Self::Array,
mask: &Mask,
) -> VortexResult<Option<ArrayRef>>;
}Required Methods§
Sourcefn filter(array: &Self::Array, mask: &Mask) -> VortexResult<Option<ArrayRef>>
fn filter(array: &Self::Array, mask: &Mask) -> VortexResult<Option<ArrayRef>>
Filter an array with the provided mask without reading buffers.
This trait is for filter 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 filtering requires buffer access.
§Preconditions
The mask is guaranteed to have the same length as the array.
Additionally, the mask is guaranteed to be a Mask::Values variant (i.e., neither
Mask::AllTrue nor Mask::AllFalse).
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.