Expand description
Computation kernels on Arrow Arrays
Modules§
- Computation kernels on Arrow Arrays
Structs§
- CastOptions provides a way to override the default cast behaviors
- A builder to construct
FilterPredicate - A filtering predicate that can be applied to an
Array - A lexicographical comparator that wraps given array data (columns) and can lexicographically compare data at given two indices. The lifetime is the same at the data wrapped.
- A computed set of partitions, see
partition - An iterator of
(usize, usize)each representing an interval[start, end)whose slots of a bitmap Buffer are true. - One column to be used in lexicographical sort
- Options that define the sort order of a given column
- Options that define how
takeshould behave
Enums§
- Valid parts to extract from date/time/timestamp arrays.
Traits§
- A trait for Arrow String Arrays, currently three types are supported:
Functions§
- Performs
ANDoperation on two arrays. If either left or right value is null then the result is also null. - Logical ‘and’ boolean values with Kleene logic
- Performs
AND_NOToperation on two arrays. If either left or right value is null then the result is also null. - Allies a binary infallable function to two
PrimitiveArrays, producing a newPrimitiveArray - Applies a binary and infallible function to values in two arrays, replacing the values in the first array in place.
- Returns the bitwise and of all non-null input values.
- Returns the bitwise or of all non-null input values.
- Returns the bitwise xor of all non-null input values.
- Returns true if all non-null input values are true, otherwise false.
- Returns true if any non-null input value is true, otherwise false.
- build_
filter Deprecated Returns a prepared function optimized to filter multiple arrays. - Return true if a value of type
from_typecan be cast into a value ofto_type. - Cast
arrayto the provided data type and return a new Array with typeto_type, if possible. - Try to cast
arraytoto_typeif possible. - Concatenates
batchestogether into a singleRecordBatch. - Perform SQL
CONTAINS(left, right) - Given an array, return a new array with the extracted
DatePartas signed 32-bit integer values. - day
Deprecated Extracts the day of a given temporal primitive array as an array of integers - day_dyn
Deprecated Extracts the day of a given temporal array as an array of integers. - doy
Deprecated Extracts the day of year of a given temporal primitive array as an array of integers. - doy_dyn
Deprecated Extracts the day of year of a given temporal array as an array of integers. - Perform SQL
ENDSWITH(left, right) - Returns a filtered RecordBatch where the corresponding elements of
predicateare true. - hour
Deprecated Extracts the hours of a given temporal primitive array as an array of integers within the range of [0, 23]. - hour_
dyn Deprecated Extracts the hours of a given array as an array of integers within the range of [0, 23]. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - Perform SQL
left ILIKE right - Checks if a
GenericListArraycontains a value in thePrimitiveArray - Checks if a
GenericListArraycontains a value in theGenericStringArray - Interleave rows by index from multiple
RecordBatchinstances and return a newRecordBatch. - Returns a non-null BooleanArray with whether each value of the array is not null.
- Returns a non-null BooleanArray with whether each value of the array is null.
- lexicographical_
partition_ ranges Deprecated Usepartitioninstead. Given a list of already sorted columns, find partition ranges that would partition lexicographically equal values across columns. - Sort a list of
ArrayRefusingSortOptionsprovided for each array. - Sort elements lexicographically from a list of
ArrayRefinto an unsigned integer (UInt32Array) of indices. - Perform SQL
left LIKE right - Returns the maximum value in the array, according to the natural order. For floating point arrays any NaN values are considered to be greater than any other non-null value
- Returns the max of values in the array of
ArrowNumericTypetype, or dictionary array with value ofArrowNumericTypetype. - Returns the maximum value in the binary array, according to the natural order.
- Returns the maximum value in the binary view array, according to the natural order.
- Returns the maximum value in the boolean array
- Returns the maximum value in the string array, according to the natural order.
- Returns the maximum value in the string view array, according to the natural order.
- microsecond
Deprecated Extracts the microseconds of a given temporal primitive array as an array of integers - microsecond_
dyn Deprecated Extracts the microseconds of a given temporal primitive array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - millisecond
Deprecated Extracts the milliseconds of a given temporal primitive array as an array of integers - millisecond_
dyn Deprecated Extracts the milliseconds of a given temporal primitive array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - Returns the minimum value in the array, according to the natural order. For floating point arrays any NaN values are considered to be greater than any other non-null value
- Returns the min of values in the array of
ArrowNumericTypetype, or dictionary array with value ofArrowNumericTypetype. - Returns the minimum value in the binary array, according to the natural order.
- Returns the minimum value in the binary view array, according to the natural order.
- Returns the minimum value in the boolean array.
- Returns the minimum value in the string array, according to the natural order.
- Returns the minimum value in the string view array, according to the natural order.
- minute
Deprecated Extracts the minutes of a given temporal primitive array as an array of integers - minute_
dyn Deprecated Extracts the minutes of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - month
Deprecated Extracts the month of a given temporal primitive array as an array of integers within the range of [1, 12]. - month_
dyn Deprecated Extracts the month of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - Perform
left * rightoperation on two decimal arrays. If either left or right value is null then the result is also null. - Perform
left * rightoperation on two decimal arrays. If either left or right value is null then the result is also null. - Perform
left * rightoperation on two decimal arrays. If either left or right value is null then the result is also null. - nanosecond
Deprecated Extracts the nanoseconds of a given temporal primitive array as an array of integers - nanosecond_
dyn Deprecated Extracts the nanoseconds of a given temporal primitive array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - Perform SQL
left NOT ILIKE right - Perform SQL
left NOT LIKE right - Performs unary
NOToperation on an arrays. If value is null then the result is also null. - Returns a new array with the same values and the validity bit to false where the corresponding element of
rightis true. - num_
days_ from_ monday Deprecated Extracts the day of week of a given temporal primitive array as an array of integers. - num_
days_ from_ monday_ dyn Deprecated Extracts the day of week of a given temporal array as an array of integers. - num_
days_ from_ sunday Deprecated Extracts the day of week of a given temporal primitive array as an array of integers, starting at Sunday. - num_
days_ from_ sunday_ dyn Deprecated Extracts the day of week of a given temporal array as an array of integers, starting at Sunday. - Performs
ORoperation on two arrays. If either left or right value is null then the result is also null. - Logical ‘or’ boolean values with Kleene logic
- It’s unstable_sort, may not preserve the order of equal elements
- Given a list of lexicographically sorted columns, computes the
Partitions, where a partition consists of the set of consecutive rows with equal values - Remove null values by do a bitmask AND operation with null bits and the boolean bits.
- quarter
Deprecated Extracts the quarter of a given temporal primitive array as an array of integers within the range of [1, 4]. - quarter_
dyn Deprecated Extracts the quarter of a given temporal array as an array of integersa within the range of [1, 4]. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - Assigns a rank to each value in
arraybased on its position in the sorted order - Return BooleanArray indicating which strings in an array match an array of regular expressions.
- Return BooleanArray indicating which strings in an array match a single regular expression.
- regexp_
is_ match_ utf8 Deprecated Perform SQLarray ~ regex_arrayoperation onStringArray/LargeStringArray. Ifregex_arrayelement has an empty value, the corresponding result value is always true. - regexp_
is_ match_ utf8_ scalar Deprecated - Extract all groups matched by a regular expression for a given String array.
- second
Deprecated Extracts the seconds of a given temporal primitive array as an array of integers - second_
dyn Deprecated Extracts the seconds of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - Shifts array by defined number of items (to left or right) A positive value for
offsetshifts the array to the right a negative value shifts the array to the left. - Sort the
ArrayRefusingSortOptions. - Sort the
ArrayRefpartially. - Sort elements from
ArrayRefinto an unsigned integer (UInt32Array) of indices. Floats are sorted using IEEE 754 totalOrder.limitis an option for partial_sort. - Perform SQL
STARTSWITH(left, right) - Returns the sum of values in the primitive array.
- Returns the sum of values in the array.
- Returns the sum of values in the array.
- Returns the sum of values in the primitive array.
- For each ArrayRef in the
Vec<ArrayRef>, take elements by index and create a newVec<ArrayRef>from those indices. - Take rows by index from
RecordBatchand returns a newRecordBatchfrom those indexes. - Applies the provided fallible binary operation across
aandb. - Applies the provided fallible binary operation across
aandbby mutating the mutablePrimitiveArrayawith the results. - try_
unary_ dyn Deprecated Applies a fallible unary function to an array with primitive values. - unary_
dyn Deprecated Applies an infallible unary function to an array with primitive values. - Returns the value of the target field when selected, or NULL otherwise.
- using_
chrono_ tz_ and_ utc_ naive_ date_ time Deprecated Parse the given string into a string representing fixed-offset that is correct as of the given UTC NaiveDateTime. - week
Deprecated Extracts the week of a given temporal primitive array as an array of integers - week_
dyn Deprecated Extracts the week of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned. - year
Deprecated Extracts the years of a given temporal primitive array as an array of integers - year_
dyn Deprecated Extracts the years of a given temporal array as an array of integers. If the given array isn’t temporal primitive or dictionary array, anErrwill be returned.
Type Aliases§
- Filter
Deprecated Function that can filter arbitrary arrays