diff options
author | Reynold Xin <rxin@databricks.com> | 2016-06-10 11:08:39 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-06-10 11:08:39 -0700 |
commit | 254bc8c34e70241508bdfc8ff42a65491f5280cd (patch) | |
tree | a4d52308e6460396fce0e44ed092b1acb79d1eb8 /core/src/test/scala/org/apache | |
parent | 0ec279ffdf92853965e327a9f0f6956cacb7a23e (diff) | |
download | spark-254bc8c34e70241508bdfc8ff42a65491f5280cd.tar.gz spark-254bc8c34e70241508bdfc8ff42a65491f5280cd.tar.bz2 spark-254bc8c34e70241508bdfc8ff42a65491f5280cd.zip |
[SPARK-15866] Rename listAccumulator collectionAccumulator
## What changes were proposed in this pull request?
SparkContext.listAccumulator, by Spark's convention, makes it sound like "list" is a verb and the method should return a list of accumulators. This patch renames the method and the class collection accumulator.
## How was this patch tested?
Updated test case to reflect the names.
Author: Reynold Xin <rxin@databricks.com>
Closes #13594 from rxin/SPARK-15866.
Diffstat (limited to 'core/src/test/scala/org/apache')
-rw-r--r-- | core/src/test/scala/org/apache/spark/util/AccumulatorV2Suite.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/test/scala/org/apache/spark/util/AccumulatorV2Suite.scala b/core/src/test/scala/org/apache/spark/util/AccumulatorV2Suite.scala index 439da1306f..a04644d57e 100644 --- a/core/src/test/scala/org/apache/spark/util/AccumulatorV2Suite.scala +++ b/core/src/test/scala/org/apache/spark/util/AccumulatorV2Suite.scala @@ -88,7 +88,7 @@ class AccumulatorV2Suite extends SparkFunSuite { } test("ListAccumulator") { - val acc = new ListAccumulator[Double] + val acc = new CollectionAccumulator[Double] assert(acc.value.isEmpty) assert(acc.isZero) |