Class GrpcBigQueryStorageStub
java.lang.Object
com.google.cloud.bigquery.storage.v1beta1.stub.BigQueryStorageStub
com.google.cloud.bigquery.storage.v1beta1.stub.GrpcBigQueryStorageStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcBigQueryStorageStub, using the given settings.protectedGrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBigQueryStorageStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) UnaryCallable<Storage.BatchCreateReadSessionStreamsRequest,Storage.BatchCreateReadSessionStreamsResponse> final voidclose()static final GrpcBigQueryStorageStubcreate(ClientContext clientContext) static final GrpcBigQueryStorageStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcBigQueryStorageStubcreate(BigQueryStorageStubSettings settings) UnaryCallable<Storage.FinalizeStreamRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcBigQueryStorageStub
protected GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcBigQueryStorageStub
protected GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcBigQueryStorageStub create(BigQueryStorageStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcBigQueryStorageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createReadSessionCallable
public UnaryCallable<Storage.CreateReadSessionRequest,Storage.ReadSession> createReadSessionCallable()- Overrides:
createReadSessionCallablein classBigQueryStorageStub
-
readRowsCallable
- Overrides:
readRowsCallablein classBigQueryStorageStub
-
batchCreateReadSessionStreamsCallable
public UnaryCallable<Storage.BatchCreateReadSessionStreamsRequest,Storage.BatchCreateReadSessionStreamsResponse> batchCreateReadSessionStreamsCallable()- Overrides:
batchCreateReadSessionStreamsCallablein classBigQueryStorageStub
-
finalizeStreamCallable
public UnaryCallable<Storage.FinalizeStreamRequest,com.google.protobuf.Empty> finalizeStreamCallable()- Overrides:
finalizeStreamCallablein classBigQueryStorageStub
-
splitReadStreamCallable
public UnaryCallable<Storage.SplitReadStreamRequest,Storage.SplitReadStreamResponse> splitReadStreamCallable()- Overrides:
splitReadStreamCallablein classBigQueryStorageStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBigQueryStorageStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-