Given a predicate, filter out all elements that don’t satisfy that predicate. May also be used to filter based on an inequality with a given value based on the natural ordering of the element.
Example 1: Filtering with a predicate
PCollectioncontaining “Hello” and “world”.
Example 2: Filtering with an inequality
- FlatMapElements behaves the same as
Map, but for each input it might produce zero or more outputs.
- ParDo is the most general element-wise mapping operation, and includes other abilities such as multiple output collections and side-inputs.
Last updated on 2020/08/14
Have you found everything you were looking for?
Was it all useful and clear? Is there anything that you would like to change? Let us know!