Expand description
Defines aggregations over Arrow arrays.
Macrosยง
- bit_
operation ๐
Structsยง
- MaxAccumulator ๐
- MinAccumulator ๐
- SumAccumulator ๐
Constantsยง
- PREFERRED_
VECTOR_ ๐SIZE - The preferred vector size in bytes for the target platform. Note that the avx512 target feature is still unstable and this also means it is not detected on stable rust.
- PREFERRED_
VECTOR_ ๐SIZE_ NON_ NULL - non-nullable aggregation requires fewer temporary registers so we can use more of them for accumulators
Traitsยง
- Numeric
Accumulator ๐ - An accumulator for primitive numeric values.
Functionsยง
- aggregate ๐
- Generic aggregation for any primitive type.
Returns None if there are no non-null values in
array
. - aggregate_
nonnull_ ๐chunk - aggregate_
nonnull_ ๐lanes - aggregate_
nonnull_ ๐simple - aggregate_
nullable_ ๐chunk - aggregate_
nullable_ ๐lanes - bit_and
- Returns the bitwise and of all non-null input values.
- bit_or
- Returns the bitwise or of all non-null input values.
- bit_xor
- Returns the bitwise xor of all non-null input values.
- bool_
and - Returns true if all non-null input values are true, otherwise false.
- bool_or
- Returns true if any non-null input value is true, otherwise false.
- max
- 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
- max_
array - Returns the max of values in the array of
ArrowNumericType
type, or dictionary array with value ofArrowNumericType
type. - max_
binary - Returns the maximum value in the binary array, according to the natural order.
- max_
binary_ view - Returns the maximum value in the binary view array, according to the natural order.
- max_
boolean - Returns the maximum value in the boolean array
- max_
string - Returns the maximum value in the string array, according to the natural order.
- max_
string_ view - Returns the maximum value in the string view array, according to the natural order.
- min
- 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
- min_
array - Returns the min of values in the array of
ArrowNumericType
type, or dictionary array with value ofArrowNumericType
type. - min_
binary - Returns the minimum value in the binary array, according to the natural order.
- min_
binary_ view - Returns the minimum value in the binary view array, according to the natural order.
- min_
boolean - Returns the minimum value in the boolean array.
- min_
max_ ๐array_ helper - min_
max_ ๐helper - Helper to compute min/max of [
ArrayAccessor
]. - min_
max_ ๐view_ helper - Helper to compute min/max of [
GenericByteViewArray<T>
]. The specialized min/max leverages the inlined values to compare the byte views.swap_cond
is the condition to swap current min/max with the new value. For example,Ordering::Greater
for max andOrdering::Less
for min. - min_
string - Returns the minimum value in the string array, according to the natural order.
- min_
string_ view - Returns the minimum value in the string view array, according to the natural order.
- reduce_
accumulators ๐ - select ๐
- Helper for branchlessly selecting either
a
orb
based on the booleanm
. After verifying the generated assembly this can be a simpleif
. - sum
- Returns the sum of values in the primitive array.
- sum_
array - Returns the sum of values in the array.
- sum_
array_ checked - Returns the sum of values in the array.
- sum_
checked - Returns the sum of values in the primitive array.