Github user fhueske commented on the pull request:

    https://github.com/apache/incubator-flink/pull/78#issuecomment-50073451
  
    Nice one!
    I'd prefer to use a ReduceFunction instead of a GroupReduceFunction because 
it is automatically combinable (which is usually important if you do a Reduce 
without groupBy) and shorter.
    However, you would need to add another MapFunction for the final division.
    
    You could also replace the first MapFunction by a FilterFunction and emit 
only a record if the test is passed. This would mean that no records with 
0-valued ints are emitted and therefore the summing becomes cheaper.
    



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