[
https://issues.apache.org/jira/browse/STORM-1513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15130472#comment-15130472
]
ASF GitHub Bot commented on STORM-1513:
---------------------------------------
Github user arunmahadevan commented on a diff in the pull request:
https://github.com/apache/storm/pull/1070#discussion_r51727059
--- Diff: documentation/Trident-API-Overview.md ---
@@ -77,13 +77,67 @@ Now suppose you had these tuples with fields ["a", "b",
"c"]:
If you ran this code:
```java
-mystream.each(new Fields("b", "a"), new MyFilter())
+mystream.filter(new MyFilter())
```
The resulting tuples would be:
```
-[2, 1, 1]
+[1, 2, 3]
--- End diff --
The earlier example had an inputFields param where order of fields were
changed ("b", "a") hence the second tuple would match the filter (slightly
confusing). In the updated example, since inputFields are not explicitly
mentioned the first tuple would match.
> Update trident api docs
> -----------------------
>
> Key: STORM-1513
> URL: https://issues.apache.org/jira/browse/STORM-1513
> Project: Apache Storm
> Issue Type: Sub-task
> Reporter: Arun Mahadevan
> Assignee: Arun Mahadevan
>
> Update trident api docs with the newly added api from STORM-1505
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)