Skip to content

[BEAM-2166] Mark coders using context as experimental.#2924

Closed
robertwb wants to merge 10 commits into
apache:masterfrom
robertwb:coders-context
Closed

[BEAM-2166] Mark coders using context as experimental.#2924
robertwb wants to merge 10 commits into
apache:masterfrom
robertwb:coders-context

Conversation

@robertwb
Copy link
Copy Markdown
Contributor

@robertwb robertwb commented May 5, 2017

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.
  • 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.

robertwb added 9 commits May 5, 2017 12:27
find . -type f -name '*.java' | xargs sed -i '' 's/\([a-zA-Z]*[bB]yteSize[a-zA-Z]*[(].*\), [^,]*[Cc]ontext[^,()]*\([(][)]\)*[)]/\1)/'

Plus a one-off Python script.
    find . -type f -name '*.java' | xargs sed -i '' 's/\([.]..code[(].*\), context.nested..[)]/\1)/'
    find . -type f -name '*.java' | xargs sed -i '' 's/\([.]..code[(].*\), nestedContext[)]/\1)/'
    find . -type f -name '*.java' | xargs sed -i '' 's/\([.]..code[(].*\), Context.NESTED[)]/\1)/'
    find . -type f -name '*.java' | xargs sed -i '' 's/\([.]..code[(].*\), Coder.Context.NESTED[)]/\1)/'
Also ran

    find . -type f -name '*.java' | xargs sed -i '' 's/Coder.Context/ContextSensitiveCoder.Context/g'
@robertwb
Copy link
Copy Markdown
Contributor Author

robertwb commented May 5, 2017

R: @kennknowles

@robertwb
Copy link
Copy Markdown
Contributor Author

robertwb commented May 5, 2017

I just saw that Coder was made into an abstract class, which could obviate the need for an intermediate ContextSensitiveCoder class (and make it possible to adapt existing coders gradually over time, possibly post-stable-release if the APIs are appropriately marked). Let me know what you think.

@robertwb
Copy link
Copy Markdown
Contributor Author

robertwb commented May 5, 2017

@tgroh

@kennknowles
Copy link
Copy Markdown
Member

FWIW we made it an abstract class explicitly to make it easier to adapt. All the usual reasons.

@robertwb
Copy link
Copy Markdown
Contributor Author

robertwb commented May 5, 2017

See #2930 instead.

@robertwb
Copy link
Copy Markdown
Contributor Author

robertwb commented May 9, 2017

Superseded by #2930 and #2933.

@robertwb robertwb closed this May 9, 2017
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.

2 participants