diff options
author | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2016-10-11 22:36:57 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-10-11 22:36:57 -0700 |
commit | b512f04f8e546843d5a3f35dcc6b675b5f4f5bc0 (patch) | |
tree | 2aeb23689944d9fb29ba07454603b717b1d36ae4 /docs | |
parent | 299eb04ba05038c7dbb3ecf74a35d4bbfa456643 (diff) | |
download | spark-b512f04f8e546843d5a3f35dcc6b675b5f4f5bc0.tar.gz spark-b512f04f8e546843d5a3f35dcc6b675b5f4f5bc0.tar.bz2 spark-b512f04f8e546843d5a3f35dcc6b675b5f4f5bc0.zip |
[SPARK-17880][DOC] The url linking to `AccumulatorV2` in the document is incorrect.
## What changes were proposed in this pull request?
In `programming-guide.md`, the url which links to `AccumulatorV2` says `api/scala/index.html#org.apache.spark.AccumulatorV2` but `api/scala/index.html#org.apache.spark.util.AccumulatorV2` is correct.
## How was this patch tested?
manual test.
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Closes #15439 from sarutak/SPARK-17880.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/programming-guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/programming-guide.md b/docs/programming-guide.md index 74d5ee1ca6..20b4bee0f5 100644 --- a/docs/programming-guide.md +++ b/docs/programming-guide.md @@ -1373,7 +1373,7 @@ res2: Long = 10 {% endhighlight %} While this code used the built-in support for accumulators of type Long, programmers can also -create their own types by subclassing [AccumulatorV2](api/scala/index.html#org.apache.spark.AccumulatorV2). +create their own types by subclassing [AccumulatorV2](api/scala/index.html#org.apache.spark.util.AccumulatorV2). The AccumulatorV2 abstract class has several methods which need to override: `reset` for resetting the accumulator to zero, and `add` for add anothor value into the accumulator, `merge` for merging another same-type accumulator into this one. Other methods need to override can refer to scala API document. For example, supposing we had a `MyVector` class representing mathematical vectors, we could write: |