apply_cmp_dict_str

Function apply_cmp_dict_str 

Source
pub fn apply_cmp_dict_str<T: Integer, U: Integer>(
    lhs: CategoricalAVT<'_, T>,
    rhs: StringAVT<'_, U>,
    op: ComparisonOperator,
) -> Result<BooleanArray<()>, KernelError>
Expand description

Applies comparison operations between categorical dictionary values and string array elements.

Performs element-wise comparison where left operands are resolved from a categorical array’s dictionary and right operands are strings.

§Parameters

  • lhs: Categorical array view tuple (CategoricalArray, offset, length)
  • rhs: String array view tuple (StringArray, offset, length)
  • op: Comparison operator (Eq, Ne, Lt, Le, Gt, Ge, In, NotIn)

§Type Parameters

  • T: Integer type for categorical array indices
  • U: Integer type for string array offsets

§Returns

Result<BooleanArray<()>, KernelError> where true elements satisfy the comparison.

§Performance

Dictionary lookups optimised with categorical encoding efficiency.