[
https://issues.apache.org/jira/browse/STORM-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123104#comment-15123104
]
ASF GitHub Bot commented on STORM-1505:
---------------------------------------
Github user satishd commented on the pull request:
https://github.com/apache/storm/pull/1050#issuecomment-176607781
Do we need MapProcessor/MapFunction as it looks very similar to each
operation (EachProcessor)?
```java
public Stream each(Fields inputFields, Function function, Fields
functionFields)
public Stream each(Function function, Fields functionFields)
```
Agree with @ptgoetz on filter.
Good to have flatMap operation.
> 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)