Package com.google.gdata.data.analytics

Examples of com.google.gdata.data.analytics.Aggregates


  *     by the query and not just the rows returned.
  * @param {DataFeed} feed Parameter passed
  *     back from the feed handler.
  */
  public static void outputFeedAggregates(DataFeed feed) { 
    Aggregates aggregates = feed.getAggregates();
    List<Metric> aggregateMetrics = aggregates.getMetrics();
    for (Metric metric : aggregateMetrics) {
      System.out.println(
        "\nMetric Name  = " + metric.getName() +
        "\nMetric Value = " + metric.getValue() +
        "\nMetric Type  = " + metric.getType() +
View Full Code Here


   * aggregate metrics represent the sum of the requested metrics across all
   * of the entries selected by the query and not just the rows returned.
   */
  public void printFeedAggregates() {
    System.out.println("\n-------- Aggregate Metric Values --------");
    Aggregates aggregates = feed.getAggregates();
    for (Metric metric : aggregates.getMetrics()) {
      System.out.println(
        "\nMetric Name  = " + metric.getName() +
        "\nMetric Value = " + metric.getValue() +
        "\nMetric Type  = " + metric.getType() +
        "\nMetric CI    = " + metric.getConfidenceInterval().toString());
View Full Code Here

TOP

Related Classes of com.google.gdata.data.analytics.Aggregates

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.