public class StreamingWordExtract
extends java.lang.Object
This pipeline example lines of text from a PubSub topic, splits each line into individual words, capitalizes those words, and writes the output to a BigQuery table.
To run this example using the Dataflow service, you must provide an input pubsub topic and an output BigQuery table, using the --inputTopic --dataset and --table options. Since this is a streaming pipeline that never completes, select the non-blocking pipeline runner --runner=DataflowPipelineRunner.
| Constructor and Description |
|---|
StreamingWordExtract() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Sets up and starts streaming pipeline.
|