GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/12612
[SPARK-14654][CORE][WIP] New accumulator API
## What changes were proposed in this pull request?
This PR introduces a new accumulator API which is much simpler than before:
1. the type hierarchy is simplified, now we only have an `Accumulator` class
2. there is no `localValue`, just `value`
3. there is no `zero` and `initialValue`, but an `initialize` method.
4. there in only one `register` method, the accumulator registration and
cleanup registration are combined.
## How was this patch tested?
existing tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark acc
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12612.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12612
----
commit 50ebb24b8be67eb0dab40b5313a9ad1d01f8129e
Author: Wenchen Fan <[email protected]>
Date: 2016-04-22T14:48:08Z
new accumulator
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]