flow::expr::relation

Module accum

Source
Expand description

Accumulators for aggregate functions that’s is accumulatable. i.e. sum/count

Accumulator will only be restore from row and being updated every time dataflow need process a new batch of rows. So the overhead is acceptable.

Currently support sum, count, any, all and min/max(with one caveat that min/max can’t support delete with aggregate). TODO: think of better ways to not ser/de every time a accum needed to be updated, since it’s in a tight loop

Structs§

  • Bool accumulator, used for Any All Max/MinBool
  • Accumulates float values for sum over floating numbers.
  • Accumulates a single Orded Value, useful for min/max aggregations.
  • Accumulates simple numeric values for sum over integer.

Enums§

  • Accumulates values for the various types of accumulable aggregations.

Traits§

  • Accumulates values for the various types of accumulable aggregations.

Functions§