pub fn apply_cmp_dict<T: Integer + Hash>(
lhs: CategoricalAVT<'_, T>,
rhs: CategoricalAVT<'_, T>,
op: ComparisonOperator,
) -> Result<BooleanArray<()>, KernelError>Expand description
Applies comparison operations between corresponding categorical dictionary values.
Performs element-wise comparison by resolving both operands from their respective categorical dictionaries and comparing the resulting string values.
§Parameters
lhs: Left categorical array view tuple(CategoricalArray, offset, length)rhs: Right categorical array view tuple(CategoricalArray, offset, length)op: Comparison operator (Eq, Ne, Lt, Le, Gt, Ge, In, NotIn)
§Type Parameters
T: Integer type for categorical array indices (must implementHash)
§Returns
Result<BooleanArray<()>, KernelError> where true elements satisfy the comparison.
§Performance
- Dictionary lookups amortised across bulk categorical operations
- Hash-based optimisations for set membership operations
- Efficient categorical code comparison where possible