Package com.google.visualization.datasource.query

Examples of com.google.visualization.datasource.query.Query.copyFrom()


    Query dataSourceQuery = new Query();
    Query completionQuery = new Query();
    if (query.hasFilter() || query.hasGroup() || query.hasPivot()) {
      // The query is copied to the completion query.
      completionQuery.copyFrom(query);
    } else {
      dataSourceQuery.setSort(query.getSort());
      dataSourceQuery.copyRowLimit(query);
      dataSourceQuery.copyRowOffset(query);
View Full Code Here


      }
      // Column selection can be empty. For example, for query "SELECT 1".
      dataSourceQuery.setSelection(selection);
    }

    completionQuery.copyFrom(query);
    return new QueryPair(dataSourceQuery, completionQuery);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.