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);