Overview

The math aggregation node allows to filter on a set of items, in the same exact way as any other AQS Root Node. However, the result is not a set of items but a Number. This root node, in fact, allows to run an aggregate operation, e.g. Sum, Max, Average, etc.

The operation is run on the specified attribute of all the items that match the AQS query. A math aggregation root node thus needs to know which entity to act on, exactly like the other root nodes, the attribute to consider and the operation to execute. The attribute to act on must be either an integer or a float and the operation type must be one of these:

  • Sum
  • Average
  • Count
  • Max
  • Min

The following examples illustrate the use of each of the operations types: