Package com.google.visualization.datasource.query

Examples of com.google.visualization.datasource.query.AggregationColumn


          // The id here is the id generated by the data source for the column containing
          // the aggregated data, e.g., max-B.
          String id = column.getId();
          // MIN is chosen arbitrarily, because there will be exactly one.
          completionSelection.addColumn(
              new AggregationColumn(new SimpleColumn(id), AggregationType.MIN));
        }
      }

      completionQuery.setSelection(completionSelection);
    } else {
View Full Code Here


    if (jj_2_5(2)) {
      aggregationType = aggregationFunction();
      jj_consume_token(OP_LPAREN);
      columnId = columnId();
      jj_consume_token(OP_RPAREN);
       result = new AggregationColumn(new SimpleColumn(columnId),
           aggregationType);
    } else if (jj_2_6(2)) {
      scalarFunction = scalarFunction();
      jj_consume_token(OP_LPAREN);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
View Full Code Here

    StringBuilder label = new StringBuilder();
    if (originalTable.containsColumn(column.getId())) {
      label.append(originalTable.getColumnDescription(column.getId()).getLabel());
    } else {
      if (column instanceof AggregationColumn) {
        AggregationColumn aggColumn = (AggregationColumn) column;
        label.append(aggColumn.getAggregationType().getCode()).append(" ").
            append(originalTable.getColumnDescription(
                aggColumn.getAggregatedColumn().getId()).getLabel());
      } else {
        ScalarFunctionColumn scalarFunctionColumn = (ScalarFunctionColumn) column;
        List<AbstractColumn> columns = scalarFunctionColumn.getColumns();
        label.append(scalarFunctionColumn.getFunction().getFunctionName()).append("(");
        for (AbstractColumn abstractColumn : columns) {
View Full Code Here

TOP

Related Classes of com.google.visualization.datasource.query.AggregationColumn

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.