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Β§
- String
Array Type - 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_opalready 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 π