vortex_array

Module compute

Source
Expand description

Compute kernels on top of Vortex Arrays.

We aim to provide a basic set of compute kernels that can be used to efficiently index, slice, and filter Vortex Arrays in their encoded forms.

Every array variant has the ability to implement their own efficient implementations of these operators, else we will decode, and perform the equivalent operator from Arrow.

Structs§

FilterMask
Represents the mask argument to a filter function.
LikeOptions
Options for SQL LIKE function

Enums§

BinaryOperator
FilterIter
Operator
SearchResult
Result of performing search_sorted on an Array
SearchSortedSide

Traits§

BinaryBooleanFn
BinaryNumericFn
CastFn
CompareFn
ComputeVTable
VTable for dispatching compute functions to Vortex encodings.
FillForwardFn
Trait for filling forward on an array, i.e., replacing nulls with the last non-null value.
FillNullFn
Implementation of fill_null for an encoding.
FilterFn
IndexOrd
InvertFn
Len
LikeFn
ScalarAtFn
Implementation of scalar_at for an encoding.
SearchSorted
SearchSortedFn
Searches for value assuming the array is sorted.
SearchSortedUsizeFn
SliceFn
Limit array to start…stop range
TakeFn

Functions§

add
Point-wise add two numeric arrays.
add_scalar
Point-wise add a scalar value to this array on the right-hand-side.
and
Point-wise logical and between two Boolean arrays.
and_kleene
Point-wise Kleene logical and between two Boolean arrays.
binary_boolean
binary_numeric
compare
div
Point-wise divide two numeric arrays.
div_scalar
Point-wise divide a scalar value into this array on the right-hand-side.
fill_forward
fill_null
filter
Return a new array by applying a boolean predicate to select items from a base Array.
invert
Logically invert a boolean array.
like
Perform SQL left LIKE right
mul
Point-wise multiply two numeric arrays.
mul_scalar
Point-wise multiply a scalar value into this array on the right-hand-side.
or
Point-wise logical or between two Boolean arrays.
or_kleene
Point-wise Kleene logical or between two Boolean arrays.
scalar_at
scalar_cmp
search_sorted
search_sorted_many
Search for many elements in the array.
search_sorted_usize
search_sorted_usize_many
slice
Return a zero-copy slice of an array, between start (inclusive) and end (exclusive).
sub
Point-wise subtract two numeric arrays.
sub_scalar
Point-wise subtract a scalar value from this array on the right-hand-side.
take
try_cast
Attempt to cast an array to a desired DType.