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.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---