Skip to content

[BEAM-498] Remove WindowingInternals support from DoFnReflector#807

Merged
asfgit merged 1 commit intoapache:masterfrom
kennknowles:DoFn-WindowingInternals
Aug 10, 2016
Merged

[BEAM-498] Remove WindowingInternals support from DoFnReflector#807
asfgit merged 1 commit intoapache:masterfrom
kennknowles:DoFn-WindowingInternals

Conversation

@kennknowles
Copy link
Member

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.

The test themselves are replaced by mostly-hidden placeholders, to ensure that our code for handling generic parameters remains in place until new context parameters that use generics are added back.

R: @bjchambers since ExtraContextFactory is a public interface, currently the hiding is a bit hackish. Probably we can and should refactor it a bit anyhow, but how about this for short term prevention of abuse?

final TypeToken<?> in, final TypeToken<?> out) {
return FluentIterable
.from(extraProcessContexts.values())
.filter(new Predicate<AdditionalParameter>() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be easier to do ".remove(InputProvider)" but this is also more future proof. Maybe "isHidden" (to support future parameters not showing up in docs)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@kennknowles kennknowles force-pushed the DoFn-WindowingInternals branch from 9c9bb05 to 2aa0d96 Compare August 10, 2016 03:58
@bjchambers
Copy link
Contributor

LGTM

The test themselves are replaced by mostly-hidden placeholders, to
ensure that our code for handling generic parameters remains in place
until new context parameters that use generics are added back.
@kennknowles kennknowles force-pushed the DoFn-WindowingInternals branch from 25f8e56 to 20208d6 Compare August 10, 2016 17:00
@asfgit asfgit merged commit 20208d6 into apache:master Aug 10, 2016
asfgit pushed a commit that referenced this pull request Aug 10, 2016
@kennknowles kennknowles deleted the DoFn-WindowingInternals branch November 12, 2016 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants