Skip to content

Modernize legacy DoFn in BatchElementsExample (#40557) - #40560

Open
CH-Abhinav wants to merge 1 commit into
apache:masterfrom
CH-Abhinav:DoFn-BatchElements
Open

CH-Abhinav wants to merge 1 commit into
apache:masterfrom
CH-Abhinav:DoFn-BatchElements

Conversation

@CH-Abhinav

Copy link
Copy Markdown

Issue

Fixes #40557

Description

Modernizes the LogOutput DoFn in BatchElementsExample.java to use parameter injection (@Element and OutputReceiver) instead of the legacy ProcessContext.

Changes

  • Replaced ProcessContext c parameter with @Element List<String> batch and OutputReceiver<String> receiver.
  • Verified with ./gradlew :examples:java:compileJava and ./gradlew :examples:java:spotlessApply.

@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @Abacn for label java.
Backup reviewer: ahmedabu98 (if the main reviewer is unresponsive, you can escalate to them by tagging their username)

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

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.

[Feature Request]: Modernize legacy DoFn in BatchElementsExample to use parameter injection

1 participant