Packages

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Builder()
  2. new Builder(_configuration: Configuration)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def build(): SparkConnectClient
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def configuration: Configuration
  8. 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.

  9. def disableReattachableExecute(): Builder

    Disable reattachable execute.

  10. def disableSsl(): Builder

    Disables the SSL.

    Disables the SSL. Throws exception if the token has been set.

    returns

    this builder.

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

  12. def enableSsl(): Builder
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def host: String
  19. def host(inputHost: String): Builder
  20. 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.

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def loadFromEnvironment(): Builder

    Configure the builder using the env SPARK_REMOTE environment variable.

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def option(key: String, value: String): Builder
  27. def options: Map[String, String]
  28. def parse(args: Array[String]): Builder

    Configure the builder with the given CLI arguments.

  29. def port: Int
  30. def port(inputPort: Int): Builder
  31. def retryPolicy(policy: RetryPolicy): Builder
  32. def sessionId: Option[String]
  33. def sessionId(value: String): Builder
  34. def sslEnabled: Boolean
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. def token: Option[String]
  38. 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.

  39. def userAgent: String
  40. def userAgent(value: String): Builder
  41. def userId: Option[String]
  42. def userId(id: String): Builder
  43. def userName: Option[String]
  44. def userName(name: String): Builder
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped