@@ -5,12 +5,12 @@ Java idiomatic client for [Google Cloud BigQuery] (https://cloud.google.com/bigq
55
66[ ![ Build Status] ( https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master )] ( https://travis-ci.org/GoogleCloudPlatform/gcloud-java )
77[ ![ Coverage Status] ( https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master )] ( https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master )
8- [ ![ Maven] ( https://img.shields.io/maven-central/v/com.google.gcloud /gcloud-java-bigquery.svg )] ( https://img.shields.io/maven-central/v/com.google.gcloud /gcloud-java-bigquery.svg )
8+ [ ![ Maven] ( https://img.shields.io/maven-central/v/com.google.cloud /gcloud-java-bigquery.svg )] ( https://img.shields.io/maven-central/v/com.google.cloud /gcloud-java-bigquery.svg )
99[ ![ Codacy Badge] ( https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917 )] ( https://www.codacy.com/app/mziccard/gcloud-java )
1010[ ![ Dependency Status] ( https://www.versioneye.com/user/projects/56bd8ee72a29ed002d2b0969/badge.svg?style=flat )] ( https://www.versioneye.com/user/projects/56bd8ee72a29ed002d2b0969 )
1111
1212- [ Homepage] (https://googlecloudplatform.github.io/gcloud-java/ )
13- - [ API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud /bigquery/package-summary.html )
13+ - [ API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/cloud /bigquery/package-summary.html )
1414
1515> Note: This client is a work-in-progress, and may occasionally
1616> make backwards-incompatible changes.
@@ -20,24 +20,24 @@ Quickstart
2020If you are using Maven, add this to your pom.xml file
2121``` xml
2222<dependency >
23- <groupId >com.google.gcloud </groupId >
23+ <groupId >com.google.cloud </groupId >
2424 <artifactId >gcloud-java-bigquery</artifactId >
2525 <version >0.1.7</version >
2626</dependency >
2727```
2828If you are using Gradle, add this to your dependencies
2929``` Groovy
30- compile 'com.google.gcloud :gcloud-java-bigquery:0.1.7'
30+ compile 'com.google.cloud :gcloud-java-bigquery:0.1.7'
3131```
3232If you are using SBT, add this to your dependencies
3333``` Scala
34- libraryDependencies += " com.google.gcloud " % " gcloud-java-bigquery" % " 0.1.7"
34+ libraryDependencies += " com.google.cloud " % " gcloud-java-bigquery" % " 0.1.7"
3535```
3636
3737Example Application
3838-------------------
39- - [ ` BigQueryExample ` ] ( ../gcloud-java-examples/src/main/java/com/google/gcloud /examples/bigquery/BigQueryExample.java ) - A simple command line interface providing some of Cloud BigQuery's functionality.
40- Read more about using this application on the [ ` BigQueryExample ` docs page] ( http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud /examples/bigquery/BigQueryExample.html ) .
39+ - [ ` BigQueryExample ` ] ( ../gcloud-java-examples/src/main/java/com/google/cloud /examples/bigquery/BigQueryExample.java ) - A simple command line interface providing some of Cloud BigQuery's functionality.
40+ Read more about using this application on the [ ` BigQueryExample ` docs page] ( http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/cloud /examples/bigquery/BigQueryExample.html ) .
4141
4242Authentication
4343--------------
@@ -82,8 +82,8 @@ These credentials are automatically inferred from your environment, so you only
8282code to create your service object:
8383
8484``` java
85- import com.google.gcloud .bigquery.BigQuery ;
86- import com.google.gcloud .bigquery.BigQueryOptions ;
85+ import com.google.cloud .bigquery.BigQuery ;
86+ import com.google.cloud .bigquery.BigQueryOptions ;
8787
8888BigQuery bigquery = BigQueryOptions . defaultInstance(). service();
8989```
@@ -96,7 +96,7 @@ With BigQuery you can create datasets. A dataset is a grouping mechanism that ho
9696tables. Add the following import at the top of your file:
9797
9898``` java
99- import com.google.gcloud .bigquery.DatasetInfo ;
99+ import com.google.cloud .bigquery.DatasetInfo ;
100100```
101101Then, to create the dataset, use the following code:
102102
@@ -113,12 +113,12 @@ are created from a BigQuery SQL query. In this code snippet we show how to creat
113113with only one string field. Add the following imports at the top of your file:
114114
115115``` java
116- import com.google.gcloud .bigquery.Field ;
117- import com.google.gcloud .bigquery.Schema ;
118- import com.google.gcloud .bigquery.StandardTableDefinition ;
119- import com.google.gcloud .bigquery.Table ;
120- import com.google.gcloud .bigquery.TableId ;
121- import com.google.gcloud .bigquery.TableInfo ;
116+ import com.google.cloud .bigquery.Field ;
117+ import com.google.cloud .bigquery.Schema ;
118+ import com.google.cloud .bigquery.StandardTableDefinition ;
119+ import com.google.cloud .bigquery.Table ;
120+ import com.google.cloud .bigquery.TableId ;
121+ import com.google.cloud .bigquery.TableInfo ;
122122```
123123Then add the following code to create the table:
124124
@@ -139,8 +139,8 @@ Google Cloud Storage file. In this code snippet we show how to stream rows into
139139Add the following imports at the top of your file:
140140
141141``` java
142- import com.google.gcloud .bigquery.InsertAllRequest ;
143- import com.google.gcloud .bigquery.InsertAllResponse ;
142+ import com.google.cloud .bigquery.InsertAllRequest ;
143+ import com.google.cloud .bigquery.InsertAllResponse ;
144144
145145import java.util.HashMap ;
146146import java.util.Map ;
@@ -171,9 +171,9 @@ directly or through a Query Job. In this code snippet we show how to run a query
171171for the result. Add the following imports at the top of your file:
172172
173173``` java
174- import com.google.gcloud .bigquery.FieldValue ;
175- import com.google.gcloud .bigquery.QueryRequest ;
176- import com.google.gcloud .bigquery.QueryResponse ;
174+ import com.google.cloud .bigquery.FieldValue ;
175+ import com.google.cloud .bigquery.QueryRequest ;
176+ import com.google.cloud .bigquery.QueryResponse ;
177177
178178import java.util.Iterator ;
179179import java.util.List ;
@@ -203,7 +203,7 @@ while (rowIterator.hasNext()) {
203203#### Complete source code
204204
205205In
206- [ InsertDataAndQueryTable.java] ( ../gcloud-java-examples/src/main/java/com/google/gcloud /examples/bigquery/snippets/InsertDataAndQueryTable.java )
206+ [ InsertDataAndQueryTable.java] ( ../gcloud-java-examples/src/main/java/com/google/cloud /examples/bigquery/snippets/InsertDataAndQueryTable.java )
207207we put together all the code shown above into one program. The program assumes that you are
208208running on Compute Engine or from your own desktop. To run the example on App Engine, simply move
209209the code from the main method to your application's servlet class and change the print statements to
@@ -255,4 +255,4 @@ Apache 2.0 - See [LICENSE] for more information.
255255
256256[ cloud-bigquery ] : https://cloud.google.com/bigquery/
257257[ cloud-storage ] : https://cloud.google.com/storage/
258- [ bigquery-api ] : http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud /bigquery/package-summary.html
258+ [ bigquery-api ] : http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/cloud /bigquery/package-summary.html
0 commit comments