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

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

  8. def disableSsl(): Builder

    Disables the SSL.

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

    returns

    this builder.

  9. def enableSsl(): Builder
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def host: String
  16. def host(inputHost: String): Builder
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def loadFromEnvironment(): Builder

    Configure the builder using the env SPARK_REMOTE environment variable.

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

    Configure the builder with the given CLI arguments.

  25. def port: Int
  26. def port(inputPort: Int): Builder
  27. def sslEnabled: Boolean
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def token: Option[String]
  31. 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.

  32. def userAgent: String
  33. def userAgent(value: String): Builder
  34. def userId: Option[String]
  35. def userId(id: String): Builder
  36. def userName: Option[String]
  37. def userName(name: String): Builder
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped