Intersection

It produces an intersection of the elements of source RDDs, that is, the target RDD consists of the elements that are identical in source RDDs.

The following example will produce an intersection of two RDDs of integers:

Intersection transformation can be executed as follows:

intRDD.intersection(intRDD2);
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.97.187