Class GrpcBigQueryReadStub
java.lang.Object
com.google.cloud.bigquery.storage.v1beta2.stub.BigQueryReadStub
com.google.cloud.bigquery.storage.v1beta2.stub.GrpcBigQueryReadStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcBigQueryReadStub
extends BigQueryReadStub
gRPC stub implementation for the BigQueryRead service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBigQueryReadStub(BigQueryReadStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcBigQueryReadStub, using the given settings.protectedGrpcBigQueryReadStub(BigQueryReadStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBigQueryReadStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcBigQueryReadStubcreate(ClientContext clientContext) static final GrpcBigQueryReadStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcBigQueryReadStubcreate(BigQueryReadStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcBigQueryReadStub
protected GrpcBigQueryReadStub(BigQueryReadStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcBigQueryReadStub, 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
-
GrpcBigQueryReadStub
protected GrpcBigQueryReadStub(BigQueryReadStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcBigQueryReadStub, 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 GrpcBigQueryReadStub create(BigQueryReadStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcBigQueryReadStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createReadSessionCallable
- Overrides:
createReadSessionCallablein classBigQueryReadStub
-
readRowsCallable
- Overrides:
readRowsCallablein classBigQueryReadStub
-
splitReadStreamCallable
- Overrides:
splitReadStreamCallablein classBigQueryReadStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBigQueryReadStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-