TO MAP

The TO MAP aggregation function aggregates an input stream to a Map.

For example, you can aggregate a stream of persons to a Map<String,Integer> with the full name as key and the age as value.

See Also
RESULT SET
AGGREGATE
GROUP BY
Choose Where to Apply Aggregations
Parameter Description
Filter expressionAn expression to keep some elements only. It is useful to process the aggregation on a subpart of your input stream.
Key expression An expression extracting the key element for the Map. For example, person.fullname.
Value expression An expression extracting the value element for the map. For example: person.age.
Multivalued If true, the value element is a List. Default: false.