GitHub user arunmahadevan opened a pull request: https://github.com/apache/storm/pull/1065
[STORM-1517] add peek api in trident stream Similar to the Java 8 peek, the peek api can be used to examine trident tuples at some point in the stream pipeline or execute some custom actions. Note: this includes changes from https://github.com/apache/storm/pull/1050 and should go away once that gets merged. You can merge this pull request into a Git repository by running: $ git pull https://github.com/arunmahadevan/storm STORM-1517 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/storm/pull/1065.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 #1065 ---- commit 1832c369735576df61c6533ff772814b537e5d68 Author: Arun Mahadevan <ai...@hortonworks.com> Date: 2016-01-27T07:02:33Z [STORM-1505] Add map and flatMap functions in trident stream map and flatmap are common stream operations. Right now in trident this has to be implemented via each() which also sends the input field values in addition to the mapped field values, so the map and flatmap should make things slightly more efficient and easy. commit 77325fdbcc506fa9c75a7b2e39f5b24fcca1e58b Author: Arun Mahadevan <ai...@hortonworks.com> Date: 2016-01-28T07:16:31Z Addressed review comments Changed input to the map and flatMap functions from Values to TridentTuple to make it more easy to use. commit 8e6bdf3bfde4e24b7b26c8bf74b46edf821fba2e Author: Arun Mahadevan <ai...@hortonworks.com> Date: 2016-02-02T10:58:59Z Added filter api filter is a wrapper over each to easily filter out tuples flowing through the pipeline. commit 04d5dfdfa605cf29b3aa401987f89dc3354918dd Author: Arun Mahadevan <ai...@hortonworks.com> Date: 2016-02-02T11:12:11Z [STORM-1517] add peek api in trident stream Similar to the Java 8 peek, the peek api can be used to examine trident tuples at some point in the stream pipeline or execute some custom actions. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---