Skip to main content

Module like

Module like 

Source
Expand description

String predicate kernels for Arrow arrays.

Provides SQL LIKE/ILIKE kernels as well as related string predicates such as contains, starts_with, ends_with, and ASCII case-insensitive equality.

Re-exportsΒ§

use crate::predicate::Predicate; πŸ”’
use arrow_array::builder::BooleanBuilder; πŸ”’
use arrow_array::cast::AsArray; πŸ”’
use arrow_array::types::ArrowDictionaryKeyType; πŸ”’
use arrow_array::types::RunEndIndexType; πŸ”’
use arrow_buffer::ArrowNativeType; πŸ”’
use arrow_select::take::take; πŸ”’
use std::sync::Arc; πŸ”’
use crate::binary_like::binary_apply; πŸ”’
use arrow_array::*; πŸ”’
use arrow_schema::*; πŸ”’

EnumsΒ§

Op πŸ”’

TraitsΒ§

StringArrayType
A trait for Arrow String Arrays, currently three types are supported:

FunctionsΒ§

binary_predicate πŸ”’
contains
Perform SQL CONTAINS(left, right)
ends_with
Perform SQL ENDSWITH(left, right)
eq_ignore_ascii_case
Perform equality check on two arrays using an ASCII case-insensitive match.
expand_runs πŸ”’
Repeats each run’s result, as computed over run_values, for every row of the run.
ilike
Perform SQL left ILIKE right
like
Perform SQL left LIKE right
like_op πŸ”’
nilike
Perform SQL left NOT ILIKE right
nlike
Perform SQL left NOT LIKE right
op_binary πŸ”’
op_scalar πŸ”’
run_array_as_dictionary πŸ”’
Views a run array as a dictionary whose keys are each row’s index into run_values.
run_end_encoded_as_dictionary πŸ”’
run_end_encoded_op πŸ”’
Rewrites run-end encoded operands into encodings that like_op already supports, so value types, nulls and errors behave as they do without run-end encoding.
run_values πŸ”’
Returns the physical values of the runs that a run-end encoded array’s slice covers.
starts_with
Perform SQL STARTSWITH(left, right)
str_contains πŸ”’
string_apply πŸ”’
vectored_iter πŸ”’