flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mariemayadi <...@git.apache.org>
Subject [GitHub] incubator-flink pull request: Add Pi approximation Java example
Date Thu, 24 Jul 2014 14:21:01 GMT
GitHub user mariemayadi opened a pull request:

    https://github.com/apache/incubator-flink/pull/78

    Add Pi approximation Java example

    Hadoop and Spark have a Pi approximation basic example (similarly to WordCount, PageRank
...), so for homogeneity it is worth having it in Flink as well.
    
    Note:
    The final result, count, which in this case is the approximation of Pi had to be assigned
the type DataSet<Double> instead of just Double (due to Flink limitation)
    So aside from executing a summation, the reduce (at the collector level) also does a little
math operation, which could have not been applied on type DataSet.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mariemayadi/incubator-flink JavaPiExample

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/78.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #78
    
----
commit f7d14a40750251d8c07f88c441aaf4e992662dc8
Author: Mariem Ayadi <mayadi@smith.edu>
Date:   2014-07-24T12:32:01Z

    Add Pi approximation Java example

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message