@@ -493,7 +493,7 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
493493 def leftOuterJoin [W ](other : RDD [(K , W )], partitioner : Partitioner ): RDD [(K , (V , Option [W ]))] = {
494494 this .cogroup(other, partitioner).flatMapValues { pair =>
495495 if (pair._2.isEmpty) {
496- pair._1.iterator.map(v => (v, None ): ( V , Option [ W ]) )
496+ pair._1.iterator.map(v => (v, None ))
497497 } else {
498498 for (v <- pair._1.iterator; w <- pair._2.iterator) yield (v, Some (w))
499499 }
@@ -510,7 +510,7 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
510510 : RDD [(K , (Option [V ], W ))] = {
511511 this .cogroup(other, partitioner).flatMapValues { pair =>
512512 if (pair._1.isEmpty) {
513- pair._2.iterator.map(w => (None , w): ( Option [ V ], W ) )
513+ pair._2.iterator.map(w => (None , w))
514514 } else {
515515 for (v <- pair._1.iterator; w <- pair._2.iterator) yield (Some (v), w)
516516 }
@@ -528,8 +528,8 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
528528 def fullOuterJoin [W ](other : RDD [(K , W )], partitioner : Partitioner )
529529 : RDD [(K , (Option [V ], Option [W ]))] = {
530530 this .cogroup(other, partitioner).flatMapValues {
531- case (vs, Seq ()) => vs.iterator.map(v => (Some (v), None ): ( Option [ V ], Option [ W ]) )
532- case (Seq (), ws) => ws.iterator.map(w => (None , Some (w)): ( Option [ V ], Option [ W ]) )
531+ case (vs, Seq ()) => vs.iterator.map(v => (Some (v), None ))
532+ case (Seq (), ws) => ws.iterator.map(w => (None , Some (w)))
533533 case (vs, ws) => for (v <- vs.iterator; w <- ws.iterator) yield (Some (v), Some (w))
534534 }
535535 }
0 commit comments