This operator can be used to route the elements in the stream to different further processing operators, depending on the predicate.

Parameter

Example

output = route({predicates=['price < 200', 'price < 300', 'price < 400']}, input)
/// elements with price < 200 are in 0:output
/// elements with price < 300 are in 1:output
/// elements with price < 400 are in 2:output