regex_str_dict

Function regex_str_dict 

Source
pub fn regex_str_dict<'a, T: Integer, U: Integer>(
    lhs: StringAVT<'a, T>,
    rhs: CategoricalAVT<'a, U>,
) -> Result<BooleanArray<()>, KernelError>
Expand description

Applies regular expression patterns from categorical dictionary against string values.

Evaluates regex patterns resolved from the categorical array’s dictionary against corresponding strings in the string array, producing a boolean array of matches.

§Parameters

  • lhs: Source string array view tuple (StringArray, offset, length)
  • rhs: Pattern categorical array view tuple (CategoricalArray, offset, length)

§Type Parameters

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

§Returns

Result<BooleanArray<()>, KernelError> where true indicates pattern match.

§Errors

Returns KernelError for invalid regular expression patterns in dictionary.

§Feature Gate

Requires the regex feature to be enabled.