Class GrpcBigQueryStorageStub (3.2.0)

public class GrpcBigQueryStorageStub extends BigQueryStorageStub

gRPC stub implementation for the BigQueryStorage service API.

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

Inheritance

java.lang.Object > BigQueryStorageStub > GrpcBigQueryStorageStub

Static Methods

create(ClientContext clientContext)

public static final GrpcBigQueryStorageStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcBigQueryStorageStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(BigQueryStorageStubSettings settings)

public static final GrpcBigQueryStorageStub create(BigQueryStorageStubSettings settings)
Parameter
NameDescription
settingsBigQueryStorageStubSettings
Returns
TypeDescription
GrpcBigQueryStorageStub
Exceptions
TypeDescription
IOException

Constructors

GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext)

protected GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcBigQueryStorageStub, 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
settingsBigQueryStorageStubSettings
clientContextClientContext

GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcBigQueryStorageStub, 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
settingsBigQueryStorageStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

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

batchCreateReadSessionStreamsCallable()

public UnaryCallable<Storage.BatchCreateReadSessionStreamsRequest,Storage.BatchCreateReadSessionStreamsResponse> batchCreateReadSessionStreamsCallable()
Returns
TypeDescription
UnaryCallable<BatchCreateReadSessionStreamsRequest,BatchCreateReadSessionStreamsResponse>
Overrides

close()

public final void close()
Overrides

createReadSessionCallable()

public UnaryCallable<Storage.CreateReadSessionRequest,Storage.ReadSession> createReadSessionCallable()
Returns
TypeDescription
UnaryCallable<CreateReadSessionRequest,ReadSession>
Overrides

finalizeStreamCallable()

public UnaryCallable<Storage.FinalizeStreamRequest,Empty> finalizeStreamCallable()
Returns
TypeDescription
UnaryCallable<FinalizeStreamRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

readRowsCallable()

public ServerStreamingCallable<Storage.ReadRowsRequest,Storage.ReadRowsResponse> readRowsCallable()
Returns
TypeDescription
ServerStreamingCallable<ReadRowsRequest,ReadRowsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

splitReadStreamCallable()

public UnaryCallable<Storage.SplitReadStreamRequest,Storage.SplitReadStreamResponse> splitReadStreamCallable()
Returns
TypeDescription
UnaryCallable<SplitReadStreamRequest,SplitReadStreamResponse>
Overrides