stankiewicz commented on code in PR #38028:
URL: https://github.com/apache/beam/pull/38028#discussion_r3023464048
##########
sdks/java/maven-archetypes/starter/src/main/resources/archetype-resources/src/main/java/StarterPipeline.java:
##########
@@ -51,16 +51,20 @@ public static void main(String[] args) {
PipelineOptionsFactory.fromArgs(args).withValidation().create());
p.apply(Create.of("Hello", "World"))
- .apply(MapElements.via(new SimpleFunction<String, String>() {
- @Override
- public String apply(String input) {
- return input.toUpperCase();
- }
- }))
- .apply(ParDo.of(new DoFn<String, Void>() {
+ .apply(
+ MapElements.via(
+ new SimpleFunction<String, String>() {
+ @Override
+ public String apply(String input) {
+ return input.toUpperCase();
+ }
+ }))
+ .apply(
+ ParDo.of(
+ new DoFn<String, Void>() {
@ProcessElement
- public void processElement(ProcessContext c) {
- LOG.info(c.element());
+ public void processElement(@Element String element) {
Review Comment:
you are missing import:
import org.apache.beam.sdk.transforms.DoFn.Element;
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]