Skip to content

Commit e94963c

Browse files
committed
Fixed spacing
1 parent f1ee57b commit e94963c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,11 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
572572
* return a resulting RDD that contains a tuple with the list of values
573573
* for that key in `this`, `other1`, `other2` and `other3`.
574574
*/
575-
def cogroup[W1, W2, W3](other1: RDD[(K, W1)], other2: RDD[(K, W2)],
576-
other3: RDD[(K, W3)], partitioner: Partitioner)
577-
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
575+
def cogroup[W1, W2, W3](other1: RDD[(K, W1)],
576+
other2: RDD[(K, W2)],
577+
other3: RDD[(K, W3)],
578+
partitioner: Partitioner)
579+
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
578580
if (partitioner.isInstanceOf[HashPartitioner] && keyClass.isArray) {
579581
throw new SparkException("Default partitioner cannot partition array keys.")
580582
}
@@ -625,7 +627,7 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
625627
* for that key in `this`, `other1`, `other2` and `other3`.
626628
*/
627629
def cogroup[W1, W2, W3](other1: RDD[(K, W1)], other2: RDD[(K, W2)], other3: RDD[(K, W3)])
628-
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
630+
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
629631
cogroup(other1, other2, other3, defaultPartitioner(self, other1, other2, other3))
630632
}
631633

@@ -668,9 +670,11 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
668670
* return a resulting RDD that contains a tuple with the list of values
669671
* for that key in `this`, `other1`, `other2` and `other3`.
670672
*/
671-
def cogroup[W1, W2, W3](other1: RDD[(K, W1)], other2: RDD[(K, W2)],
672-
other3: RDD[(K, W3)], numPartitions: Int)
673-
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
673+
def cogroup[W1, W2, W3](other1: RDD[(K, W1)],
674+
other2: RDD[(K, W2)],
675+
other3: RDD[(K, W3)],
676+
numPartitions: Int)
677+
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
674678
cogroup(other1, other2, other3, new HashPartitioner(numPartitions))
675679
}
676680

@@ -687,7 +691,7 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
687691

688692
/** Alias for cogroup. */
689693
def groupWith[W1, W2, W3](other1: RDD[(K, W1)], other2: RDD[(K, W2)], other3: RDD[(K, W3)])
690-
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
694+
: RDD[(K, (Iterable[V], Iterable[W1], Iterable[W2], Iterable[W3]))] = {
691695
cogroup(other1, other2, other3, defaultPartitioner(self, other1, other2, other3))
692696
}
693697

0 commit comments

Comments
 (0)