[
https://issues.apache.org/jira/browse/BEAM-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15797434#comment-15797434
]
ASF GitHub Bot commented on BEAM-1223:
--------------------------------------
GitHub user staslev opened a pull request:
https://github.com/apache/beam/pull/1731
[BEAM-1223][Followup] Reduced visibility for Sum,Min,Max,Mean.
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
- [ ] Make sure the PR title is formatted like:
`[BEAM-<Jira issue #>] Description of pull request`
- [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
- [ ] Replace `<Jira issue #>` in the title with the actual Jira issue
number, if there is one.
- [ ] If this contribution is large, please file an Apache
[Individual Contributor License
Agreement](https://www.apache.org/licenses/icla.txt).
---
R: @lukecwik
I'm creating this PR following the #1723 as discussed.
Let me know how it looks.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/staslev/beam BEAM-1223-follow-up
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/beam/pull/1731.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 #1731
----
commit f38a015be52734c40096fe30d50337b4b4d1ad1c
Author: Stas Levin <[email protected]>
Date: 2017-01-04T07:23:55Z
[BEAM-1223][Followup] Reduced visibility for Sum,Min,Max,Mean combine Fns.
----
> Add static factory methods for Sum.[*]Fn classes
> ------------------------------------------------
>
> Key: BEAM-1223
> URL: https://issues.apache.org/jira/browse/BEAM-1223
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Reporter: Stas Levin
> Assignee: Stas Levin
> Priority: Minor
>
> {{Sum.SumDoubleFn}}, {{SumIntegerFn}} and {{SumLongFn}} are not using the
> {{X.of()}} or {{X.from()}} or other instance creation via static method
> patterns that are ubiquitous in Beam.
> Following a discussion on the dev list, it would be great to preserve a
> consistent look and feel and change the creation patterns for these classes
> to something like {{SumFn.ofLong()}} etc.
> See also the corresponding [dev list
> thread|https://lists.apache.org/thread.html/5d8e905ee49b116d13811c2a96da65eeb44ab7c002870f50936ee1ad@%3Cdev.beam.apache.org%3E].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)