Class BigqueryClient

java.lang.Object
org.apache.beam.sdk.io.gcp.testing.BigqueryClient

@Internal public class BigqueryClient extends Object
A wrapper class to call Bigquery API calls.

Example:

Get a new Bigquery client:

[
    BigqueryClient client = BigqueryClient.getNewBigqueryClient(applicationName);
 ]

Execute a query with retries:

[
    QueryResponse response = client.queryWithRetries(queryString, projectId);
 ]

Create a new dataset in one project:

[
    client.createNewDataset(projectId, datasetId);
 ]

Delete a dataset in one project, included its all tables:

[
    client.deleteDataset(projectId, datasetId);
 ]

Create a new table

[
    client.createNewTable(projectId, datasetId, newTable)
 ]

Insert data into table

[
    client.insertDataToTable(projectId, datasetId, tableName, rows)
 ]