Class BigQueryTornadoes
- java.lang.Object
-
- org.apache.beam.examples.cookbook.BigQueryTornadoes
-
public class BigQueryTornadoes extends java.lang.ObjectAn example that reads the public samples of weather data from BigQuery, counts the number of tornadoes that occur in each month, and writes the results to BigQuery.Concepts: Reading/writing BigQuery; counting a PCollection; user-defined PTransforms
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 with the form:
--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
apache-beam-testing.samples.weather_stationsand can be overridden with--input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBigQueryTornadoes.OptionsOptions supported byBigQueryTornadoes.
-
Constructor Summary
Constructors Constructor Description BigQueryTornadoes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapplyBigQueryTornadoes(org.apache.beam.sdk.Pipeline p, BigQueryTornadoes.Options options)static voidmain(java.lang.String[] args)static voidrunBigQueryTornadoes(BigQueryTornadoes.Options options)
-
-
-
Method Detail
-
applyBigQueryTornadoes
public static void applyBigQueryTornadoes(org.apache.beam.sdk.Pipeline p, BigQueryTornadoes.Options options)
-
runBigQueryTornadoes
public static void runBigQueryTornadoes(BigQueryTornadoes.Options options)
-
main
public static void main(java.lang.String[] args)
-
-