Class BigQueryWriteGrpc.BigQueryWriteBlockingStub (3.6.1)

public static final class BigQueryWriteGrpc.BigQueryWriteBlockingStub extends AbstractBlockingStub<BigQueryWriteGrpc.BigQueryWriteBlockingStub>

A stub to allow clients to do synchronous rpc calls to service BigQueryWrite.

BigQuery Write API. The Write API can be used to write data to BigQuery. The google.cloud.bigquery.storage.v1 API should be used instead of the v1beta2 API for BigQueryWrite operations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > BigQueryWriteGrpc.BigQueryWriteBlockingStub

Methods

batchCommitWriteStreams(BatchCommitWriteStreamsRequest request) (deprecated)

public BatchCommitWriteStreamsResponse batchCommitWriteStreams(BatchCommitWriteStreamsRequest request)

Atomically commits a group of PENDING streams that belong to the same parent table. Streams must be finalized before commit and cannot be committed multiple times. Once a stream is committed, data in the stream becomes available for read operations.

Parameter
Name Description
request BatchCommitWriteStreamsRequest
Returns
Type Description
BatchCommitWriteStreamsResponse

build(Channel channel, CallOptions callOptions) (deprecated)

protected BigQueryWriteGrpc.BigQueryWriteBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
BigQueryWriteGrpc.BigQueryWriteBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createWriteStream(CreateWriteStreamRequest request) (deprecated)

public WriteStream createWriteStream(CreateWriteStreamRequest request)

Creates a write stream to the given table. Additionally, every table has a special COMMITTED stream named '_default' to which data can be written. This stream doesn't need to be created using CreateWriteStream. It is a stream that can be used simultaneously by any number of clients. Data written to this stream is considered committed as soon as an acknowledgement is received.

Parameter
Name Description
request CreateWriteStreamRequest
Returns
Type Description
WriteStream

finalizeWriteStream(FinalizeWriteStreamRequest request) (deprecated)

public FinalizeWriteStreamResponse finalizeWriteStream(FinalizeWriteStreamRequest request)

Finalize a write stream so that no new data can be appended to the stream. Finalize is not supported on the '_default' stream.

Parameter
Name Description
request FinalizeWriteStreamRequest
Returns
Type Description
FinalizeWriteStreamResponse

flushRows(FlushRowsRequest request) (deprecated)

public FlushRowsResponse flushRows(FlushRowsRequest request)

Flushes rows to a BUFFERED stream. If users are appending rows to BUFFERED stream, flush operation is required in order for the rows to become available for reading. A Flush operation flushes up to any previously flushed offset in a BUFFERED stream, to the offset specified in the request. Flush is not supported on the _default stream, since it is not BUFFERED.

Parameter
Name Description
request FlushRowsRequest
Returns
Type Description
FlushRowsResponse

getWriteStream(GetWriteStreamRequest request) (deprecated)

public WriteStream getWriteStream(GetWriteStreamRequest request)

Gets a write stream.

Parameter
Name Description
request GetWriteStreamRequest
Returns
Type Description
WriteStream