Package com.google.cloud.bigquery


package com.google.cloud.bigquery
A client for BigQuery – A fully managed, petabyte scale, low cost enterprise data warehouse for analytics.

A simple usage example showing how to create a table in Bigquery. For the complete source code see CreateTable.java.


 BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService(); *
 TableId tableId = TableId.of(datasetName, tableName);
 TableDefinition tableDefinition = StandardTableDefinition.of(schema);
 TableInfo tableInfo = TableInfo.newBuilder(tableId, tableDefinition).build(); *
 bigquery.create(tableInfo);
 System.out.println("Table created successfully");
 
See Also: