GitHub user piffall opened a pull request:

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

    Added new high-order function RDD::cartesianFilter(other)(f).

    ## What changes were proposed in this pull request?
    
    Add a new high-order function to RDD to make cartesian filter pairs in one 
step. Scala and Java API only.
    
    ## How was this patch tested?
    
    This patch include a test in JavaAPISuite

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

    $ git pull https://github.com/piffall/spark master

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

    https://github.com/apache/spark/pull/14345.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 #14345
    
----
commit 7c06180ab7a08a19522c5467056bb37514264f86
Author: Cristòfol Torrens <[email protected]>
Date:   2016-07-25T09:23:33Z

    Added new high-order function RDD::cartesianFilter(other)(f).
    
    This method do the same as:
     rdd1.cartesian(other).filter(f)
    but in a single step.
    
    Is almost 2x faster on large RDDs cartesian.

----


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to