Class GrpcBigQueryWriteStub
java.lang.Object
com.google.cloud.bigquery.storage.v1.stub.BigQueryWriteStub
com.google.cloud.bigquery.storage.v1.stub.GrpcBigQueryWriteStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the BigQueryWrite service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcBigQueryWriteStub, using the given settings.protectedGrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBigQueryWriteStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcBigQueryWriteStubcreate(ClientContext clientContext) static final GrpcBigQueryWriteStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcBigQueryWriteStubcreate(BigQueryWriteStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcBigQueryWriteStub
protected GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcBigQueryWriteStub, 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
-
GrpcBigQueryWriteStub
protected GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcBigQueryWriteStub, 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 GrpcBigQueryWriteStub create(BigQueryWriteStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcBigQueryWriteStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createWriteStreamCallable
- Overrides:
createWriteStreamCallablein classBigQueryWriteStub
-
appendRowsCallable
- Overrides:
appendRowsCallablein classBigQueryWriteStub
-
getWriteStreamCallable
- Overrides:
getWriteStreamCallablein classBigQueryWriteStub
-
finalizeWriteStreamCallable
public UnaryCallable<FinalizeWriteStreamRequest,FinalizeWriteStreamResponse> finalizeWriteStreamCallable()- Overrides:
finalizeWriteStreamCallablein classBigQueryWriteStub
-
batchCommitWriteStreamsCallable
public UnaryCallable<BatchCommitWriteStreamsRequest,BatchCommitWriteStreamsResponse> batchCommitWriteStreamsCallable()- Overrides:
batchCommitWriteStreamsCallablein classBigQueryWriteStub
-
flushRowsCallable
- Overrides:
flushRowsCallablein classBigQueryWriteStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBigQueryWriteStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-