public static interface BigQueryServices.StorageClient
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client object.
|
com.google.cloud.bigquery.storage.v1.ReadSession |
createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request)
Create a new read session against an existing table.
|
BigQueryServices.BigQueryServerStream<com.google.cloud.bigquery.storage.v1.ReadRowsResponse> |
readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request)
Read rows in the context of a specific read stream.
|
BigQueryServices.BigQueryServerStream<com.google.cloud.bigquery.storage.v1.ReadRowsResponse> |
readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request,
java.lang.String fullTableId) |
default void |
reportPendingMetrics()
Call this method on Work Item thread to report outstanding metrics.
|
com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse |
splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) |
com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse |
splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request,
java.lang.String fullTableId) |
com.google.cloud.bigquery.storage.v1.ReadSession createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request)
BigQueryServices.BigQueryServerStream<com.google.cloud.bigquery.storage.v1.ReadRowsResponse> readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request)
BigQueryServices.BigQueryServerStream<com.google.cloud.bigquery.storage.v1.ReadRowsResponse> readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, java.lang.String fullTableId)
com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request)
com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, java.lang.String fullTableId)
default void reportPendingMetrics()
Because incrementing metrics is only supported on the execution thread, callback thread that has pending metrics cannot report it directly.
void close()
The override is required since AutoCloseable
allows the close method to raise an
exception.
close
in interface java.lang.AutoCloseable