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

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


    }
    log.warning(sb.toString());
  }

  public static Table createTable(String projectId, String datasetId, String tableId, TableSchema schema, Bigquery bigquery) throws IOException {
    Table table = new Table();

    TableReference tableRef = new TableReference();
    tableRef.setDatasetId(datasetId);
    tableRef.setProjectId(projectId);
    tableRef.setTableId(tableId);
    table.setTableReference(tableRef);
    table.setFriendlyName(tableId);
    table.setSchema(schema);

    try {
      return bigquery.tables().insert(projectId, datasetId, table).execute();
    }
    catch (GoogleJsonResponseException e) {
View Full Code Here

TOP

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

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.