Class EnhancedBigQueryReadStub
- java.lang.Object
-
- com.google.cloud.bigquery.storage.v1.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static EnhancedBigQueryReadStub
create(EnhancedBigQueryReadStubSettings settings)
static EnhancedBigQueryReadStub
create(EnhancedBigQueryReadStubSettings settings, BigQueryReadSettings.RetryAttemptListener readRowsRetryAttemptListener)
com.google.api.gax.rpc.UnaryCallable<CreateReadSessionRequest,ReadSession>
createReadSessionCallable()
BigQueryReadStubSettings
getStubSettings()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.ServerStreamingCallable<ReadRowsRequest,ReadRowsResponse>
readRowsCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<SplitReadStreamRequest,SplitReadStreamResponse>
splitReadStreamCallable()
-
-
-
Method Detail
-
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:
close
in interfaceAutoCloseable
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfacecom.google.api.gax.core.BackgroundResource
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in interfacecom.google.api.gax.core.BackgroundResource
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interfacecom.google.api.gax.core.BackgroundResource
-
shutdownNow
public void shutdownNow()
- Specified by:
shutdownNow
in interfacecom.google.api.gax.core.BackgroundResource
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Specified by:
awaitTermination
in interfacecom.google.api.gax.core.BackgroundResource
- Throws:
InterruptedException
-
getStubSettings
public BigQueryReadStubSettings getStubSettings()
-
-