Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor DoFnOp.FutureCollectorImpl to a top level class in SamzaRunner #26274

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

ryucc
Copy link
Contributor

@ryucc ryucc commented Apr 13, 2023

Making FutureCollectorImpl a top level class for the following reasons

  • FutureCollectorImpl has no dependency on DoFnOp.
  • Enables us to use FutureCollectorImpl in other FnOps.
  • Good practice to not use inner classes.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

@mynameborat
Copy link
Contributor

mynameborat commented Apr 13, 2023

Good practice to not use inner classes

Too general a statement. I don't think nested classes are anti-pattern. I see the motivation here is multi-fold but wouldn't treat/callout this as a motivation as this gives out incorrect signal on usage of nested class.

Copy link
Contributor

@xinyuiscool xinyuiscool left a comment

Choose a reason for hiding this comment

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

LGTM

@xinyuiscool xinyuiscool merged commit 78b5ffb into apache:master Apr 14, 2023
@ryucc ryucc deleted the FutureCollectorImpl branch April 20, 2023 22:38
jakubrauch pushed a commit to jakubrauch/beam that referenced this pull request Apr 27, 2023
rezarokni pushed a commit to rezarokni/beam that referenced this pull request May 22, 2023
ryucc added a commit to linkedin/beam that referenced this pull request May 31, 2023
Extract BundleManager to an Interface in SamzaRunner (apache#26268)

Refactor DoFnOp.FutureCollectorImpl to a top level class in SamzaRunner (apache#26274)

Add JavaDoc to BundleManager in Samza Runner (apache#26287)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants