Class EnhancedBigQueryReadStub
java.lang.Object
com.google.cloud.bigquery.storage.v1beta2.stub.EnhancedBigQueryReadStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
public class EnhancedBigQueryReadStub
extends Object
implements com.google.api.gax.core.BackgroundResource
Enhanced stub class for BigQuery Storage API.
This class is for advanced usage and reflects the underlying API directly.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) voidclose()static EnhancedBigQueryReadStubcreate(EnhancedBigQueryReadStubSettings settings) static EnhancedBigQueryReadStubcreate(EnhancedBigQueryReadStubSettings settings, BigQueryReadSettings.RetryAttemptListener readRowsRetryAttemptListener) com.google.api.gax.rpc.UnaryCallable<CreateReadSessionRequest,ReadSession> booleanbooleancom.google.api.gax.rpc.ServerStreamingCallable<ReadRowsRequest,ReadRowsResponse> voidshutdown()voidcom.google.api.gax.rpc.UnaryCallable<SplitReadStreamRequest,SplitReadStreamResponse>
-
Method Details
-
create
public static EnhancedBigQueryReadStub create(EnhancedBigQueryReadStubSettings settings) throws IOException - Throws:
IOException
-
create
public static EnhancedBigQueryReadStub create(EnhancedBigQueryReadStubSettings settings, BigQueryReadSettings.RetryAttemptListener readRowsRetryAttemptListener) throws IOException - Throws:
IOException
-
createReadSessionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReadSessionRequest,ReadSession> createReadSessionCallable() -
readRowsCallable
public com.google.api.gax.rpc.ServerStreamingCallable<ReadRowsRequest,ReadRowsResponse> readRowsCallable() -
splitReadStreamCallable
public com.google.api.gax.rpc.UnaryCallable<SplitReadStreamRequest,SplitReadStreamResponse> splitReadStreamCallable() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfacecom.google.api.gax.core.BackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfacecom.google.api.gax.core.BackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfacecom.google.api.gax.core.BackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfacecom.google.api.gax.core.BackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfacecom.google.api.gax.core.BackgroundResource- Throws:
InterruptedException
-