Class MaxPerKeyExamples


  • public class MaxPerKeyExamples
    extends java.lang.Object
    An example that reads the public samples of weather data from BigQuery, and finds the maximum temperature ('mean_temp') for each month.

    Concepts: The 'Max' statistical combination function, and how to find the max per key group.

    Note: Before running this example, you must create a BigQuery dataset to contain your output table.

    To execute this pipeline locally, specify the BigQuery table for the output with the form:

    
     --output=YOUR_PROJECT_ID:DATASET_ID.TABLE_ID
     

    To change the runner, specify:

    
     --runner=YOUR_SELECTED_RUNNER
     
    See examples/java/README.md for instructions about how to configure different runners.

    The BigQuery input table defaults to apache-beam-testing.samples.weather_stations and can be overridden with --input.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaxPerKeyExamples

        public MaxPerKeyExamples()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception