GitHub user ScrapCodes opened a pull request:

    https://github.com/apache/spark/pull/97

    Spark 1162 Implemented takeOrdered in pyspark.

    Since python does not have a library for max heap and usual tricks like 
inverting values etc.. does not work for all cases. So best thing I could think 
of is modify heapq itself.

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

    $ git pull https://github.com/ScrapCodes/spark-1 
SPARK-1162/pyspark-top-takeOrdered2

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

    https://github.com/apache/spark/pull/97.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 #97
    
----
commit 3e7a57506ce139af804f89f16a3404624d784f7e
Author: Prashant Sharma <prashan...@imaginea.com>
Date:   2014-03-06T12:12:16Z

    Added top in python.

commit 3bedad7dfe3b18ee9f64cc376627d3d7489a0e9f
Author: Prashant Sharma <prashan...@imaginea.com>
Date:   2014-03-07T10:35:31Z

    Added takeOrdered

----


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

Reply via email to