Class StreamWriter.Builder

    • Method Detail

      • setEnableConnectionPool

        public StreamWriter.Builder setEnableConnectionPool​(boolean enableConnectionPool)
        Enable multiplexing for this writer. In multiplexing mode tables will share the same connection if possible until the connection is overwhelmed.
        Parameters:
        enableConnectionPool -
        Returns:
        Builder
      • setChannelProvider

        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).

      • setCredentialsProvider

        public StreamWriter.Builder setCredentialsProvider​(com.google.api.gax.core.CredentialsProvider credentialsProvider)
        CredentialsProvider to use to create Credentials to authenticate calls.
      • setExecutorProvider

        public StreamWriter.Builder setExecutorProvider​(com.google.api.gax.core.ExecutorProvider executorProvider)
        ExecutorProvider to use to create Executor to run background jobs.
      • setTraceId

        public StreamWriter.Builder setTraceId​(String traceId)
        Sets traceId for debuging purpose. TraceId must follow the format of CustomerDomain:DebugString, e.g. DATAFLOW:job_id_x.
      • setLocation

        public StreamWriter.Builder setLocation​(String location)
        Location of the table this stream writer is targeting.
      • setLimitExceededBehavior

        public StreamWriter.Builder setLimitExceededBehavior​(com.google.api.gax.batching.FlowController.LimitExceededBehavior limitExceededBehavior)
                                                      throws io.grpc.StatusRuntimeException
        Sets the limit exceeded behavior.
        Parameters:
        limitExceededBehavior -
        Returns:
        Throws:
        io.grpc.StatusRuntimeException