[
https://issues.apache.org/jira/browse/STORM-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15127597#comment-15127597
]
ASF GitHub Bot commented on STORM-1505:
---------------------------------------
Github user arunmahadevan commented on the pull request:
https://github.com/apache/storm/pull/1050#issuecomment-178345578
@ptgoetz Ok I will move peek implementation to a separate PR.
Are you suggesting we overload filter api with fields parameter to keep it
similar to each(inputFields, filter) ? Typically filter method accepts only the
predicate so I did not add that api. E.g. [Java8
filter](https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html#filter-java.util.function.Predicate-).
Let me know if we should add the overload.
> Add map, flatMap and filter operations in trident api
> -----------------------------------------------------
>
> Key: STORM-1505
> URL: https://issues.apache.org/jira/browse/STORM-1505
> Project: Apache Storm
> Issue Type: Improvement
> Reporter: Arun Mahadevan
> Assignee: Arun Mahadevan
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)