Skip to content

Commit 6a994eb

Browse files
committed
SPARK-1259 Make RDD locally iterable
1 parent 8be3dcf commit 6a994eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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
@@ -291,7 +291,7 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
291291
new JIterable[T](){
292292
def iterator(): JIterator[T] = {
293293
import scala.collection.JavaConversions._
294-
asJavaIterator(rdd.toLocallyIterable.iterator)
294+
rdd.toLocallyIterable.iterator
295295
}
296296
}
297297
}

0 commit comments

Comments
 (0)