pub trait CompareKernel: VTable {
// Required method
fn compare(
lhs: &Self::Array,
rhs: &dyn Array,
operator: Operator,
ctx: &mut ExecutionCtx,
) -> VortexResult<Option<ArrayRef>>;
}Expand description
Trait for encoding-specific comparison kernels that operate in encoded space.
Implementations can compare an encoded array against another array (typically a constant)
without first decompressing. The adaptor normalizes operand order so array is always
the left-hand side, swapping the operator when necessary.
Required Methods§
fn compare( lhs: &Self::Array, rhs: &dyn Array, operator: Operator, 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.