Repository: spark Updated Branches: refs/heads/branch-2.0 b4a89c1c1 -> 7fbac48f0
[MINOR] Update AccumulatorV2 doc to not mention "+=". ## What changes were proposed in this pull request? As reported by Bryan Cutler on the mailing list, AccumulatorV2 does not have a += method, yet the documentation still references it. ## How was this patch tested? N/A Author: petermaxlee <petermax...@gmail.com> Closes #14466 from petermaxlee/accumulator. (cherry picked from commit e026064143367e4614cb866e321cc521fdde3170) Signed-off-by: Sean Owen <so...@cloudera.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/7fbac48f Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/7fbac48f Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/7fbac48f Branch: refs/heads/branch-2.0 Commit: 7fbac48f011f286ac779dfac6b2e8bbfcc2dd3a8 Parents: b4a89c1 Author: petermaxlee <petermax...@gmail.com> Authored: Fri Aug 5 11:06:36 2016 +0100 Committer: Sean Owen <so...@cloudera.com> Committed: Fri Aug 5 11:06:46 2016 +0100 ---------------------------------------------------------------------- core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/7fbac48f/core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala ---------------------------------------------------------------------- diff --git a/core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala b/core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala index 044dd69..a9167ce 100644 --- a/core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala +++ b/core/src/main/scala/org/apache/spark/util/AccumulatorV2.scala @@ -131,7 +131,7 @@ abstract class AccumulatorV2[IN, OUT] extends Serializable { def reset(): Unit /** - * Takes the inputs and accumulates. e.g. it can be a simple `+=` for counter accumulator. + * Takes the inputs and accumulates. */ def add(v: IN): Unit --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org