Class GrpcBigQueryWriteStub (3.9.0)

public class GrpcBigQueryWriteStub extends BigQueryWriteStub

gRPC stub implementation for the BigQueryWrite service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > BigQueryWriteStub > GrpcBigQueryWriteStub

Static Methods

create(ClientContext clientContext)

public static final GrpcBigQueryWriteStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcBigQueryWriteStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcBigQueryWriteStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcBigQueryWriteStub
Exceptions
Type Description
IOException

create(BigQueryWriteStubSettings settings)

public static final GrpcBigQueryWriteStub create(BigQueryWriteStubSettings settings)
Parameter
Name Description
settings BigQueryWriteStubSettings
Returns
Type Description
GrpcBigQueryWriteStub
Exceptions
Type Description
IOException

Constructors

GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext)

protected GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcBigQueryWriteStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings BigQueryWriteStubSettings
clientContext ClientContext

GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcBigQueryWriteStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings BigQueryWriteStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

appendRowsCallable()

public BidiStreamingCallable<AppendRowsRequest,AppendRowsResponse> appendRowsCallable()
Returns
Type Description
BidiStreamingCallable<AppendRowsRequest,AppendRowsResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchCommitWriteStreamsCallable()

public UnaryCallable<BatchCommitWriteStreamsRequest,BatchCommitWriteStreamsResponse> batchCommitWriteStreamsCallable()
Returns
Type Description
UnaryCallable<BatchCommitWriteStreamsRequest,BatchCommitWriteStreamsResponse>
Overrides

close()

public final void close()
Overrides

createWriteStreamCallable()

public UnaryCallable<CreateWriteStreamRequest,WriteStream> createWriteStreamCallable()
Returns
Type Description
UnaryCallable<CreateWriteStreamRequest,WriteStream>
Overrides

finalizeWriteStreamCallable()

public UnaryCallable<FinalizeWriteStreamRequest,FinalizeWriteStreamResponse> finalizeWriteStreamCallable()
Returns
Type Description
UnaryCallable<FinalizeWriteStreamRequest,FinalizeWriteStreamResponse>
Overrides

flushRowsCallable()

public UnaryCallable<FlushRowsRequest,FlushRowsResponse> flushRowsCallable()
Returns
Type Description
UnaryCallable<FlushRowsRequest,FlushRowsResponse>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getWriteStreamCallable()

public UnaryCallable<GetWriteStreamRequest,WriteStream> getWriteStreamCallable()
Returns
Type Description
UnaryCallable<GetWriteStreamRequest,WriteStream>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()