public class AutoComplete
extends java.lang.Object
Concepts: Using the same pipeline in both streaming and batch, combiners, composite transforms.
To execute this pipeline in streaming mode, specify:
--streaming
To change the runner, specify:
--runner=YOUR_SELECTED_RUNNER
See examples/java/README.md for instructions about how to configure different runners.
This will update the Cloud Datastore every 10 seconds based on the last 30 minutes of data received.
| Modifier and Type | Class and Description |
|---|---|
static class |
AutoComplete.ComputeTopCompletions
A PTransform that takes as input a list of tokens and returns the most common tokens per
prefix.
|
static interface |
AutoComplete.Options
Options supported by this class.
|
| Constructor and Description |
|---|
AutoComplete() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static void |
runAutocompletePipeline(AutoComplete.Options options) |
public static void runAutocompletePipeline(AutoComplete.Options options) throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException