Package com.google.api.services.bigquery.model

Examples of com.google.api.services.bigquery.model.QueryRequest


// Use this function for small, quick queries that return less than 100 rows and take less than 5 seconds to process.

QueryResponse executeQuickQuery(Jobs jobs, String projectid, String query) throws IOException {
  long starttime = System.nanoTime();
 
  QueryRequest queryrequest = new QueryRequest().setQuery(query);
  QueryResponse queryresponse = jobs.query(projectid, queryrequest).execute();

  TableSchema schema = queryresponse.getSchema();
  log.info("Table schema: " + schema.toPrettyString());
  List<TableFieldSchema> fields = schema.getFields();
View Full Code Here

TOP

Related Classes of com.google.api.services.bigquery.model.QueryRequest

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.