Class AutoComplete


  • public class AutoComplete
    extends java.lang.Object
    An 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:

    
     --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.

    • Constructor Detail

      • AutoComplete

        public AutoComplete()
    • 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