Skip navigation links

@Generated(value="by gapic-generator-java")

Package com.google.cloud.bigquery.storage.v1beta2

The interfaces provided are listed below, along with usage samples.

See: Description

Package com.google.cloud.bigquery.storage.v1beta2 Description

The interfaces provided are listed below, along with usage samples.

======================= BaseBigQueryReadClient =======================

Service Description: BigQuery Read API.

The Read API can be used to read data from BigQuery.

New code should use the v1 Read API going forward, if they don't use Write API at the same time.

Sample for BaseBigQueryReadClient:


 try (BaseBigQueryReadClient baseBigQueryReadClient = BaseBigQueryReadClient.create()) {
   ProjectName parent = ProjectName.of("[PROJECT]");
   ReadSession readSession = ReadSession.newBuilder().build();
   int maxStreamCount = 940837515;
   ReadSession response =
       baseBigQueryReadClient.createReadSession(parent, readSession, maxStreamCount);
 }
 

======================= BigQueryWriteClient =======================

Service Description: BigQuery Write API.

The Write API can be used to write data to BigQuery.

Sample for BigQueryWriteClient:


 try (BigQueryWriteClient bigQueryWriteClient = BigQueryWriteClient.create()) {
   TableName parent = TableName.of("[PROJECT]", "[DATASET]", "[TABLE]");
   WriteStream writeStream = WriteStream.newBuilder().build();
   WriteStream response = bigQueryWriteClient.createWriteStream(parent, writeStream);
 }
 
Skip navigation links

Copyright © 2021 Google LLC. All rights reserved.