Skip to content

Commit 0b735e9

Browse files
committed
Fix line lengths
1 parent ae56746 commit 0b735e9

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

core/src/main/scala/org/apache/spark/api/java/JavaPairRDD.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ class JavaPairRDD[K, V](val rdd: RDD[(K, V)])
232232
* Aggregate the values of each key, using given combine functions and a neutral "zero value".
233233
* This function can return a different result type, U, than the type of the values in this RDD,
234234
* V. Thus, we need one operation for merging a V into a U and one operation for merging two U's,
235-
* as in scala.TraversableOnce. The former operation is used for merging values within a partition,
236-
* and the latter is used for merging values between partitions. To avoid memory allocation, both
237-
* of these functions are allowed to modify and return their first argument instead of creating a
238-
* new U.
235+
* as in scala.TraversableOnce. The former operation is used for merging values within a
236+
* partition, and the latter is used for merging values between partitions. To avoid memory
237+
* allocation, both of these functions are allowed to modify and return their first argument
238+
* instead of creating a new U.
239239
*/
240240
def aggregateByKey[U](zeroValue: U, partitioner: Partitioner, seqFunc: JFunction2[U, V, U],
241241
combFunc: JFunction2[U, U, U]): JavaPairRDD[K, U] = {
@@ -247,10 +247,10 @@ class JavaPairRDD[K, V](val rdd: RDD[(K, V)])
247247
* Aggregate the values of each key, using given combine functions and a neutral "zero value".
248248
* This function can return a different result type, U, than the type of the values in this RDD,
249249
* V. Thus, we need one operation for merging a V into a U and one operation for merging two U's,
250-
* as in scala.TraversableOnce. The former operation is used for merging values within a partition,
251-
* and the latter is used for merging values between partitions. To avoid memory allocation, both
252-
* of these functions are allowed to modify and return their first argument instead of creating a
253-
* new U.
250+
* as in scala.TraversableOnce. The former operation is used for merging values within a
251+
* partition, and the latter is used for merging values between partitions. To avoid memory
252+
* allocation, both of these functions are allowed to modify and return their first argument
253+
* instead of creating a new U.
254254
*/
255255
def aggregateByKey[U](zeroValue: U, numPartitions: Int, seqFunc: JFunction2[U, V, U],
256256
combFunc: JFunction2[U, U, U]): JavaPairRDD[K, U] = {

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
122122
* Aggregate the values of each key, using given combine functions and a neutral "zero value".
123123
* This function can return a different result type, U, than the type of the values in this RDD,
124124
* V. Thus, we need one operation for merging a V into a U and one operation for merging two U's,
125-
* as in scala.TraversableOnce. The former operation is used for merging values within a partition,
126-
* and the latter is used for merging values between partitions. To avoid memory allocation, both
127-
* of these functions are allowed to modify and return their first argument instead of creating a
128-
* new U.
125+
* as in scala.TraversableOnce. The former operation is used for merging values within a
126+
* partition, and the latter is used for merging values between partitions. To avoid memory
127+
* allocation, both of these functions are allowed to modify and return their first argument
128+
* instead of creating a new U.
129129
*/
130130
def aggregateByKey[U: ClassTag](zeroValue: U, partitioner: Partitioner)(seqOp: (U, V) => U,
131131
combOp: (U, U) => U): RDD[(K, U)] = {
@@ -144,10 +144,10 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
144144
* Aggregate the values of each key, using given combine functions and a neutral "zero value".
145145
* This function can return a different result type, U, than the type of the values in this RDD,
146146
* V. Thus, we need one operation for merging a V into a U and one operation for merging two U's,
147-
* as in scala.TraversableOnce. The former operation is used for merging values within a partition,
148-
* and the latter is used for merging values between partitions. To avoid memory allocation, both
149-
* of these functions are allowed to modify and return their first argument instead of creating a
150-
* new U.
147+
* as in scala.TraversableOnce. The former operation is used for merging values within a
148+
* partition, and the latter is used for merging values between partitions. To avoid memory
149+
* allocation, both of these functions are allowed to modify and return their first argument
150+
* instead of creating a new U.
151151
*/
152152
def aggregateByKey[U: ClassTag](zeroValue: U, numPartitions: Int)(seqOp: (U, V) => U,
153153
combOp: (U, U) => U): RDD[(K, U)] = {
@@ -158,10 +158,10 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
158158
* Aggregate the values of each key, using given combine functions and a neutral "zero value".
159159
* This function can return a different result type, U, than the type of the values in this RDD,
160160
* V. Thus, we need one operation for merging a V into a U and one operation for merging two U's,
161-
* as in scala.TraversableOnce. The former operation is used for merging values within a partition,
162-
* and the latter is used for merging values between partitions. To avoid memory allocation, both
163-
* of these functions are allowed to modify and return their first argument instead of creating a
164-
* new U.
161+
* as in scala.TraversableOnce. The former operation is used for merging values within a
162+
* partition, and the latter is used for merging values between partitions. To avoid memory
163+
* allocation, both of these functions are allowed to modify and return their first argument
164+
* instead of creating a new U.
165165
*/
166166
def aggregateByKey[U: ClassTag](zeroValue: U)(seqOp: (U, V) => U,
167167
combOp: (U, U) => U): RDD[(K, U)] = {

0 commit comments

Comments
 (0)