Class SparkClientBuilder
java.lang.Object
com.azure.analytics.synapse.spark.SparkClientBuilder
A builder for creating a new instance of the SparkClient type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPolicy
(HttpPipelinePolicy customPolicy) Adds a custom Http pipeline policy.Builds an instance of SparkBatchAsyncClient async client.Builds an instance of SparkBatchClient sync client.Builds an instance of SparkSessionAsyncClient async client.Builds an instance of SparkSessionClient sync client.clientOptions
(ClientOptions clientOptions) Sets The client options such as application ID and custom headers to set on a request.configuration
(Configuration configuration) Sets The configuration store that is used during construction of the service client.credential
(TokenCredential tokenCredential) Sets The TokenCredential used for authentication.Sets The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.httpClient
(HttpClient httpClient) Sets The HTTP client used to send the request.httpLogOptions
(HttpLogOptions httpLogOptions) Sets The logging configuration for HTTP requests and responses.livyApiVersion
(String livyApiVersion) Sets Valid api-version for the request.pipeline
(HttpPipeline pipeline) Sets The HTTP pipeline to send requests through.retryPolicy
(RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.serializerAdapter
(SerializerAdapter serializerAdapter) Sets The serializer to serialize an object into a string.sparkPoolName
(String sparkPoolName) Sets Name of the spark pool.
-
Constructor Details
-
SparkClientBuilder
public SparkClientBuilder()Create an instance of the SparkClientBuilder.
-
-
Method Details
-
endpoint
Sets The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.- Parameters:
endpoint
- the endpoint value.- Returns:
- the SparkClientBuilder.
-
livyApiVersion
Sets Valid api-version for the request.- Parameters:
livyApiVersion
- the livyApiVersion value.- Returns:
- the SparkClientBuilder.
-
sparkPoolName
Sets Name of the spark pool.- Parameters:
sparkPoolName
- the sparkPoolName value.- Returns:
- the SparkClientBuilder.
-
pipeline
Sets The HTTP pipeline to send requests through.- Parameters:
pipeline
- the pipeline value.- Returns:
- the SparkClientBuilder.
-
serializerAdapter
Sets The serializer to serialize an object into a string.- Parameters:
serializerAdapter
- the serializerAdapter value.- Returns:
- the SparkClientBuilder.
-
httpClient
Sets The HTTP client used to send the request.- Parameters:
httpClient
- the httpClient value.- Returns:
- the SparkClientBuilder.
-
configuration
Sets The configuration store that is used during construction of the service client.- Parameters:
configuration
- the configuration value.- Returns:
- the SparkClientBuilder.
-
credential
Sets The TokenCredential used for authentication.- Parameters:
tokenCredential
- the tokenCredential value.- Returns:
- the SparkClientBuilder.
-
httpLogOptions
Sets The logging configuration for HTTP requests and responses.- Parameters:
httpLogOptions
- the httpLogOptions value.- Returns:
- the SparkClientBuilder.
-
retryPolicy
Sets The retry policy that will attempt to retry failed requests, if applicable.- Parameters:
retryPolicy
- the retryPolicy value.- Returns:
- the SparkClientBuilder.
-
clientOptions
Sets The client options such as application ID and custom headers to set on a request.- Parameters:
clientOptions
- the clientOptions value.- Returns:
- the SparkClientBuilder.
-
addPolicy
Adds a custom Http pipeline policy.- Parameters:
customPolicy
- The custom Http pipeline policy to add.- Returns:
- the SparkClientBuilder.
-
buildSparkBatchAsyncClient
Builds an instance of SparkBatchAsyncClient async client.- Returns:
- an instance of SparkBatchAsyncClient.
-
buildSparkSessionAsyncClient
Builds an instance of SparkSessionAsyncClient async client.- Returns:
- an instance of SparkSessionAsyncClient.
-
buildSparkBatchClient
Builds an instance of SparkBatchClient sync client.- Returns:
- an instance of SparkBatchClient.
-
buildSparkSessionClient
Builds an instance of SparkSessionClient sync client.- Returns:
- an instance of SparkSessionClient.
-