Class CombinePerKeyExamples
- java.lang.Object
-
- org.apache.beam.examples.cookbook.CombinePerKeyExamples
-
public class CombinePerKeyExamples extends java.lang.ObjectAn example that reads the public 'Shakespeare' data, and for each word in the dataset that is over a given length, generates a string containing the list of play names in which that word appears, and saves this information to a bigquery table.Note: Before running this example, you must create a BigQuery dataset to contain your output table.
To execute this pipeline locally, specify the BigQuery table for the output:
--output=YOUR_PROJECT_ID:DATASET_ID.TABLE_IDTo change the runner, specify:
See examples/java/README.md for instructions about how to configure different runners.--runner=YOUR_SELECTED_RUNNERThe BigQuery input table defaults to
publicdata:samples.shakespeareand can be overridden with--input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCombinePerKeyExamples.ConcatWordsA 'combine function' used with the Combine.perKey transform.static interfaceCombinePerKeyExamples.OptionsOptions supported byCombinePerKeyExamples.
-
Constructor Summary
Constructors Constructor Description CombinePerKeyExamples()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-