Skip to content

Commit 34aa300

Browse files
committed
Fix toLocalIterator docs
1 parent 08363ef commit 34aa300

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
283283
}
284284

285285
/**
286-
* Return a Stream that contains all of the elements in this RDD.
286+
* Return an iterator that contains all of the elements in this RDD.
287287
*
288288
* In case of iterating it consumes memory as the biggest partition in cluster.
289289
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ abstract class RDD[T: ClassTag](
664664
}
665665

666666
/**
667-
* Return a Stream that contains all of the elements in this RDD.
667+
* Return an iterator that contains all of the elements in this RDD.
668668
*
669669
* In case of iterating it consumes memory as the biggest partition in cluster.
670670
*/

0 commit comments

Comments
 (0)