spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [2/2] git commit: Merge pull request #144 from liancheng/runjob-clean
Date Wed, 06 Nov 2013 21:27:52 GMT
Merge pull request #144 from liancheng/runjob-clean

Removed unused return value in SparkContext.runJob

Return type of this `runJob` version is `Unit`:

    def runJob[T, U: ClassManifest](
        rdd: RDD[T],
        func: (TaskContext, Iterator[T]) => U,
        partitions: Seq[Int],
        allowLocal: Boolean,
        resultHandler: (Int, U) => Unit) {
        ...
    }

It's obviously unnecessary to "return" `result`.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/aadeda5e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/aadeda5e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/aadeda5e

Branch: refs/heads/master
Commit: aadeda5e7697a433c82879033e758fbc403680dc
Parents: 951024f a0c4565
Author: Reynold Xin <rxin@apache.org>
Authored: Wed Nov 6 13:27:47 2013 -0800
Committer: Reynold Xin <rxin@apache.org>
Committed: Wed Nov 6 13:27:47 2013 -0800

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/SparkContext.scala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------



Mime
View raw message