Skip to content

Commit

Permalink
Correct syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyu committed May 8, 2015
1 parent d92bfcf commit c2786df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,16 @@ private object TestUserClosuresActuallyCleaned {
rdd.mapPartitionsWithIndex { (_, it) => return; it }.count()
}
def testFlatMapWith(rdd: RDD[Int]): Unit = {
rdd.flatMapWith { (it) => return; it }.count()
rdd.flatMapWith { _ => return; Seq() }.count()
}
def testMapWith(rdd: RDD[Int]): Unit = {
rdd.mapWith { (it) => return; it }.count()
rdd.mapWith { _ => return; 0 }.count()
}
def testFilterWith(rdd: RDD[Int]): Unit = {
rdd.filterWith { (it) => return; it }.count()
rdd.filterWith { _ => return; true }.count()
}
def testForEachWith(rdd: RDD[Int]): Unit = {
rdd.foreachWith { (it) => return; it }.count()
rdd.foreachWith { _ => return }
}
def testMapPartitionsWithContext(rdd: RDD[Int]): Unit = {
rdd.mapPartitionsWithContext { (_, it) => return; it }.count()
Expand Down

0 comments on commit c2786df

Please sign in to comment.