public static final class StreamWriter.Builder extends Object
StreamWriters.| Modifier and Type | Method and Description |
|---|---|
StreamWriter |
build()
Builds the
StreamWriterV2. |
StreamWriter.Builder |
setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
ChannelProvider to use to create Channels, which must point at Cloud BigQuery Storage
API endpoint. |
StreamWriter.Builder |
setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
CredentialsProvider to use to create Credentials to authenticate calls. |
StreamWriter.Builder |
setEnableConnectionPool(boolean enableConnectionPool)
Enable multiplexing for this writer.
|
StreamWriter.Builder |
setEndpoint(String endpoint)
Gives the ability to override the gRPC endpoint.
|
StreamWriter.Builder |
setExecutorProvider(com.google.api.gax.core.ExecutorProvider executorProvider)
ExecutorProvider to use to create Executor to run background jobs. |
StreamWriter.Builder |
setLimitExceededBehavior(com.google.api.gax.batching.FlowController.LimitExceededBehavior limitExceededBehavior)
Sets the limit exceeded behavior.
|
StreamWriter.Builder |
setLocation(String location)
Location of the table this stream writer is targeting.
|
StreamWriter.Builder |
setMaxInflightBytes(long value) |
StreamWriter.Builder |
setMaxInflightRequests(long value) |
StreamWriter.Builder |
setMaxRetryDuration(Duration maxRetryDuration) |
StreamWriter.Builder |
setTraceId(String traceId)
Sets traceId for debuging purpose.
|
StreamWriter.Builder |
setWriterSchema(ProtoSchema writerSchema)
Sets the proto schema of the rows.
|
public StreamWriter.Builder setWriterSchema(ProtoSchema writerSchema)
public StreamWriter.Builder setMaxInflightRequests(long value)
public StreamWriter.Builder setMaxInflightBytes(long value)
public StreamWriter.Builder setEndpoint(String endpoint)
public StreamWriter.Builder setEnableConnectionPool(boolean enableConnectionPool)
enableConnectionPool - public StreamWriter.Builder setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
ChannelProvider to use to create Channels, which must point at Cloud BigQuery Storage
API endpoint.
For performance, this client benefits from having multiple underlying connections. See
InstantiatingGrpcChannelProvider.Builder.setPoolSize(int).
public StreamWriter.Builder setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
CredentialsProvider to use to create Credentials to authenticate calls.public StreamWriter.Builder setExecutorProvider(com.google.api.gax.core.ExecutorProvider executorProvider)
ExecutorProvider to use to create Executor to run background jobs.public StreamWriter.Builder setTraceId(String traceId)
public StreamWriter.Builder setLocation(String location)
public StreamWriter.Builder setLimitExceededBehavior(com.google.api.gax.batching.FlowController.LimitExceededBehavior limitExceededBehavior) throws io.grpc.StatusRuntimeException
limitExceededBehavior - io.grpc.StatusRuntimeExceptionpublic StreamWriter.Builder setMaxRetryDuration(Duration maxRetryDuration)
public StreamWriter build() throws IOException
StreamWriterV2.IOExceptionCopyright © 2023 Google LLC. All rights reserved.