TO SET

The TO SET aggregation function aggregates an input stream to a Set.

For example, you can aggregate a stream of persons to a Set<String> retrieving their ages.

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.
Expression An expression extracting the element to put into the Set. For example, person.age.