arrow_arith

Module aggregate

Source
Expand description

Defines aggregations over Arrow arrays.

Macrosยง

Structsยง

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ยง

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 of ArrowNumericType 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 of ArrowNumericType 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_helper ๐Ÿ”’
    Helper to compute min/max of [ArrayAccessor].
  • 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 and Ordering::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.
  • select ๐Ÿ”’
    Helper for branchlessly selecting either a or b based on the boolean m. After verifying the generated assembly this can be a simple if.
  • 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.