GitHub user jelmerk opened a pull request: https://github.com/apache/flink/pull/5616
[FLINK-8828] [stream, dataset, scala] Introduce collect method ## What is the purpose of the change A collect function is a method that takes a Partial Function as its parameter and applies it to all the elements in the collection to create a new collection which satisfies the Partial Function. It makes certain things nicer to express ## Brief change log - added collect method on scala dataset and datastream api ## Verifying this change It seems to be hard to find a place where this could be tested in isolation, suggestions welcome ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: yes - The serializers: don't know - The runtime per-record code paths (performance sensitive): yes - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper:don't know - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? yes - If yes, how is the feature documented? JavaDocs You can merge this pull request into a Git repository by running: $ git pull https://github.com/jelmerk/flink collect_support Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5616.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5616 ---- commit 61b4bcb7c941950d62d0db0aa2041f1796fdbaaf Author: Jelmer Kuperus <jkuperus@...> Date: 2018-03-02T09:17:54Z [FLINK-8828] [stream, dataset, scala] Introduce collect method ---- ---