Github user StephanEwen commented on the pull request:
https://github.com/apache/incubator-flink/pull/78#issuecomment-52603018
I think you can even further simplify it and
- Either drop the mapper that converts the numbers to 1, do the filter
directly and then count, or
- Do the mapper that uses the filter's logic to convert the value to
either 0 or 1, depending on the "within the unit circle" condition. Then simply
sum.
---
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.
---