class Builder extends AnyRef
This is a helper class that is used to create a GRPC channel based on either a set host and port or a NameResolver-compliant URI connection string.
- Alphabetic
- By Inheritance
- Builder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build(): SparkConnectClient
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def configuration: Configuration
-
def
connectionString(connectionString: String): Builder
Creates the channel with a target connection string, per the documentation of Spark Connect.
Creates the channel with a target connection string, per the documentation of Spark Connect.
Note: The connection string, if used, will override any previous host/port settings.
-
def
disableReattachableExecute(): Builder
Disable reattachable execute.
-
def
disableSsl(): Builder
Disables the SSL.
Disables the SSL. Throws exception if the token has been set.
- returns
this builder.
-
def
enableReattachableExecute(): Builder
Enable reattachable execute.
Enable reattachable execute.
It makes client more robust, enabling reattaching to an ExecutePlanResponse stream in case of intermittent connection errors.
- def enableSsl(): Builder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def host: String
- def host(inputHost: String): Builder
-
def
interceptor(interceptor: ClientInterceptor): Builder
Add an interceptor to be used during channel creation.
Add an interceptor to be used during channel creation.
Note that interceptors added last are executed first by gRPC.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
loadFromEnvironment(): Builder
Configure the builder using the env SPARK_REMOTE environment variable.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def option(key: String, value: String): Builder
- def options: Map[String, String]
-
def
parse(args: Array[String]): Builder
Configure the builder with the given CLI arguments.
- def port: Int
- def port(inputPort: Int): Builder
- def retryPolicy(policy: RetryPolicy): Builder
- def sessionId: Option[String]
- def sessionId(value: String): Builder
- def sslEnabled: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def token: Option[String]
-
def
token(inputToken: String): Builder
Setting the token implicitly sets the use_ssl=true.
Setting the token implicitly sets the use_ssl=true. All the following examples yield the same results:
sc://localhost/;token=aaa sc://localhost/;use_ssl=true;token=aaa sc://localhost/;token=aaa;use_ssl=true
Throws exception if the token is set but use_ssl=false.
- inputToken
the user token.
- returns
this builder.
- def userAgent: String
- def userAgent(value: String): Builder
- def userId: Option[String]
- def userId(id: String): Builder
- def userName: Option[String]
- def userName(name: String): Builder
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()