SWITCH

You can use this operator when you want to apply different treatments to different groups. The SWITCH operator takes a single stream and returns several streams, each containing elements sharing the same expression evaluation.

This page discusses:

See Also
Expression Language
Defining and Managing Data Queries

Input

A stream of elements.

Output

N streams of E elements. Each stream contains elements sharing the same expression evaluation. The number of outputs corresponds to the number of cases defined.

Example

From one stream with a list of employees, you want to return 2 streams, based on their genders.