Class GrpcBigQueryWriteStub (3.4.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcBigQueryWriteStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcBigQueryWriteStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcBigQueryWriteStub
Exceptions
TypeDescription
IOException

create(BigQueryWriteStubSettings settings)

public static final GrpcBigQueryWriteStub create(BigQueryWriteStubSettings settings)
Parameter
NameDescription
settingsBigQueryWriteStubSettings
Returns
TypeDescription
GrpcBigQueryWriteStub
Exceptions
TypeDescription
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
NameDescription
settingsBigQueryWriteStubSettings
clientContextClientContext

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
NameDescription
settingsBigQueryWriteStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

appendRowsCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchCommitWriteStreamsCallable()

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

close()

public final void close()
Overrides

createWriteStreamCallable()

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

finalizeWriteStreamCallable()

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

flushRowsCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getWriteStreamCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()