public class AutoComplete extends 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.
|
| Constructor and Description |
|---|
AutoComplete() |
public static void main(String[] args) throws IOException
IOException