Class DistinctExample
- java.lang.Object
-
- org.apache.beam.examples.cookbook.DistinctExample
-
public class DistinctExample extends java.lang.ObjectThis example uses as input text of King Lear, by William Shakespeare as plaintext files, and will remove any duplicate lines from this file. (The output does not preserve any input order).Concepts: the Distinct transform, and how to wire transforms together. Demonstrates
TextIO.Read/Distinct/TextIO.Write.To execute this pipeline locally, specify a local output file or output prefix on GCS: --output=[YOUR_LOCAL_FILE | gs://YOUR_OUTPUT_PREFIX]
To change the runner, specify:
See examples/java/README.md for instructions about how to configure different runners.--runner=YOUR_SELECTED_RUNNERThe input defaults to
gs://apache-beam-samples/shakespeare/kinglear.txtand can be overridden with--input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDistinctExample.OptionsOptions supported byDistinctExample.
-
Constructor Summary
Constructors Constructor Description DistinctExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-