Send feedback
Class JsonStreamWriter.Builder (2.37.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.37.2 keyboard_arrow_down
public static final class JsonStreamWriter . Builder
Inheritance
Object >
JsonStreamWriter.Builder
Methods
build()
public JsonStreamWriter build ()
getStreamName()
public String getStreamName ()
Stream name on the builder.
Returns Type Description String
Builder
setChannelProvider(TransportChannelProvider channelProvider)
public JsonStreamWriter . Builder setChannelProvider ( TransportChannelProvider channelProvider )
Setter for the underlying StreamWriter's TransportChannelProvider.
setCredentialsProvider(CredentialsProvider credentialsProvider)
public JsonStreamWriter . Builder setCredentialsProvider ( CredentialsProvider credentialsProvider )
Setter for the underlying StreamWriter's CredentialsProvider.
setEnableConnectionPool(boolean enableConnectionPool)
public JsonStreamWriter . 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. This feature is still under
development, please contact write api team before using.
Parameter Name Description enableConnectionPool
boolean
setEndpoint(String endpoint)
public JsonStreamWriter . Builder setEndpoint ( String endpoint )
Setter for the underlying StreamWriter's Endpoint.
Parameter Name Description endpoint
String
setExecutorProvider(ExecutorProvider executorProvider)
public JsonStreamWriter . Builder setExecutorProvider ( ExecutorProvider executorProvider )
Setter for the underlying StreamWriter's ExecutorProvider.
setFlowControlSettings(FlowControlSettings flowControlSettings)
public JsonStreamWriter . Builder setFlowControlSettings ( FlowControlSettings flowControlSettings )
Setter for the underlying StreamWriter's FlowControlSettings.
setIgnoreUnknownFields(boolean ignoreUnknownFields)
public JsonStreamWriter . Builder setIgnoreUnknownFields ( boolean ignoreUnknownFields )
Setter for a ignoreUnkownFields, if true, unknown Json fields to BigQuery will be ignored
instead of error out.
Parameter Name Description ignoreUnknownFields
boolean
setLocation(String location)
public JsonStreamWriter . Builder setLocation ( String location )
Location of the table this stream writer is targeting. Connection pools are shared by
location.
Parameter Name Description location
String
setReconnectAfter10M(boolean reconnectAfter10M)
public JsonStreamWriter . Builder setReconnectAfter10M ( boolean reconnectAfter10M )
This parameter is not used. It will be removed soon.
Parameter Name Description reconnectAfter10M
boolean
setTraceId(String traceId)
public JsonStreamWriter . Builder setTraceId ( String traceId )
Setter for a traceId to help identify traffic origin.
Parameter Name Description traceId
String
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[],[]]