Github user ptgoetz commented on the pull request:

    https://github.com/apache/storm/pull/1050#issuecomment-176445555
  
    @arunmahadevan you read my mind with the addition of the `filter()` method, 
but I'm curious why you didn't use the existing `each()` method for it?
    
    For example:
    
    ```java
        public Stream filter(Fields inputFields, Filter filter) {
            return each(inputFields, new FilterExecutor(filter), new Fields());
        }
    
        public Stream filter(Filter filter) {
            return filter(getOutputFields(), filter);
        }
    ```


---
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.
---

Reply via email to