Class AutoComplete
- java.lang.Object
-
- org.apache.beam.examples.complete.AutoComplete
-
public class AutoComplete extends java.lang.ObjectAn example that computes the most popular hash tags for every prefix, which can be used for auto-completion.Concepts: Using the same pipeline in both streaming and batch, combiners, composite transforms.
To execute this pipeline in streaming mode, specify:
--streamingTo change the runner, specify:
See examples/java/README.md for instructions about how to configure different runners.--runner=YOUR_SELECTED_RUNNERThis will update the Cloud Datastore every 10 seconds based on the last 30 minutes of data received.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutoComplete.ComputeTopCompletionsA PTransform that takes as input a list of tokens and returns the most common tokens per prefix.static interfaceAutoComplete.OptionsOptions supported by this class.
-
Constructor Summary
Constructors Constructor Description AutoComplete()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static voidrunAutocompletePipeline(AutoComplete.Options options)
-
-
-
Method Detail
-
runAutocompletePipeline
public static void runAutocompletePipeline(AutoComplete.Options options) throws java.io.IOException
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
-