Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.beam.sdk.transforms.SimpleFunction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.beam.sdk.transforms.DoFn.Element;

/**
* A starter example for writing Beam programs.
Expand Down Expand Up @@ -54,13 +55,14 @@ public static void main(String[] args) {
.apply(
MapElements.via(
new SimpleFunction<String, String>() {
@Override
public String apply(String input)
{
return input.toUpperCase();
}
}))
.apply(ParDo.of(new DoFn<String, Void>() {
@Override
public String apply(String input) {
return input.toUpperCase();
}
}))
.apply(
ParDo.of(
new DoFn<String, Void>() {
@ProcessElement
public void processElement(@Element String element) {
Comment thread
stankiewicz marked this conversation as resolved.
LOG.info(element);
Expand Down
Loading