Expand description
Defines aggregations over Arrow arrays.
Macrosยง
- bit_
operation ๐
Structsยง
- MaxAccumulator ๐
- MinAccumulator ๐
- SumAccumulator ๐
Constantsยง
- 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.
- 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
. - 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.
- 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
ArrowNumericType
type, or dictionary array with value ofArrowNumericType
type. - 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.
- 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
ArrowNumericType
type, or dictionary array with value ofArrowNumericType
type. - 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.
- 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. - 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.
- reduce_
accumulators ๐ - select ๐Helper for branchlessly selecting either
a
orb
based on the booleanm
. After verifying the generated assembly this can be a simpleif
. - 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.