General Parameters
PartitionersYou specify how to partition the input stream with partitioning function objects. Define how you want to split your data before doing an aggregation. The Value partitioner is the most common one. You can partition your data with multiple partitioners. When you do so, it applies the partitioners at the same level. Example: [
{age:21,surname:"martin",firstName:"Jean"},
{age:20,surname:"martin",firstName:"Pierre"},
{age:21,surname:"jack",firstName:"Paul"},
{age:20,surname:"jack",firstName:"Leo"},
{age:20,surname:"jack",firstName:"Jeanne"},
]
To split with two value partitioners
The name of the partitioner is the variable name you can use in the outputExpression. AggregationsAs for the AGGREGATE operator, you can define aggregations with aggregation functions.. OutputThe output is a stream of type: The output stream cardinality corresponds to the number of groups found during the grouping
operation. The number of elements in the tuple corresponds to If you define both fast path aggregators and nested graphs, the output type is:
ExampleYou want to group employees who share the same salary.
| |||||||||||||||||||||