apache/incubator-spark — pull request #519 by mengxr (2014-01-27 17:16:08+00:00)
Title: cache RDD.count result

If my understanding is correct, RDD is immutable and hence RDD.count should always return the same result. User might not expect count() always trigger a Spark job, so shall we cache the result?