Class ActivityReportingQueryBuilder

  • All Implemented Interfaces:
    QueryBuilder

    public final class ActivityReportingQueryBuilder
    extends java.lang.Object
    implements QueryBuilder
    Utility class that produces SQL queries used to generate activity reports from Bigquery.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getReportQuery​(org.joda.time.YearMonth yearMonth)
      Returns the aggregate query which generates the activity report from the saved view.
      com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.String> getViewQueryMap​(org.joda.time.YearMonth yearMonth)
      Sets the month we're doing activity reporting for, and returns the view query map.
      void prepareForQuery​(org.joda.time.YearMonth yearMonth)  
      • Methods inherited from class java.lang.Object

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

      • getReportQuery

        public java.lang.String getReportQuery​(org.joda.time.YearMonth yearMonth)
        Returns the aggregate query which generates the activity report from the saved view.
        Specified by:
        getReportQuery in interface QueryBuilder
      • getViewQueryMap

        public com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.String> getViewQueryMap​(org.joda.time.YearMonth yearMonth)
        Sets the month we're doing activity reporting for, and returns the view query map.
        Specified by:
        getViewQueryMap in interface QueryBuilder
      • prepareForQuery

        public void prepareForQuery​(org.joda.time.YearMonth yearMonth)
                             throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException