See this blog post that explains this code in detail.
Apache Beam project based on the minimal word count example, modified to show how to get the pipeline representation.
More general info about the word count examples in Apache Beam can be found in the documentation.
- Java 8 (Java 9 or above are not officially supported by Beam yet)
- Maven 3.6.x
mvn compile exec:java \
-Dexec.mainClass=org.apache.beam.examples.MinimalWordCount \
-Pdirect-runner