class Builder extends Logging
- Alphabetic
- By Inheritance
- Builder
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Builder()
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 client(client: SparkConnectClient): Builder
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
config(map: Map[String, Any]): Builder
Sets a config option.
Sets a config option. Options set using this method are automatically propagated to both
SparkConfand SparkSession's own configuration.- Since
3.5.0
-
def
config(map: Map[String, Any]): Builder
Sets a config a map of options.
Sets a config a map of options. Options set using this method are automatically propagated to the Spark Connect session. Only runtime options are supported.
- Since
3.5.0
-
def
config(key: String, value: Boolean): Builder
Sets a config option.
Sets a config option. Options set using this method are automatically propagated to the Spark Connect session. Only runtime options are supported.
- Since
3.5.0
-
def
config(key: String, value: Double): Builder
Sets a config option.
Sets a config option. Options set using this method are automatically propagated to the Spark Connect session. Only runtime options are supported.
- Since
3.5.0
-
def
config(key: String, value: Long): Builder
Sets a config option.
Sets a config option. Options set using this method are automatically propagated to the Spark Connect session. Only runtime options are supported.
- Since
3.5.0
-
def
config(key: String, value: String): Builder
Sets a config option.
Sets a config option. Options set using this method are automatically propagated to the Spark Connect session. Only runtime options are supported.
- Since
3.5.0
-
def
create(): SparkSession
Create a new SparkSession.
Create a new SparkSession.
This will always return a newly created session.
This method will update the default and/or active session if they are not set.
- Since
3.5.0
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getOrCreate(): SparkSession
Get or create a SparkSession.
Get or create a SparkSession.
If a session exist with the same configuration that is returned instead of creating a new session.
This method will update the default and/or active session if they are not set. This method will always set the specified configuration options on the session, even when it is not newly created.
- Since
3.5.0
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
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.
- Since
3.5.0
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
logNativeProto(dbrLogBytes: Array[Byte]): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def remote(connectionString: String): Builder
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withLogContext(context: HashMap[String, String])(body: ⇒ Unit): Unit
- Attributes
- protected
- Definition Classes
- Logging
Deprecated Value Members
-
def
appName(name: String): Builder
- Annotations
- @deprecated
- Deprecated
appName does not work in Spark Connect
-
def
build(): SparkSession
Build the SparkSession.
Build the SparkSession.
This will always return a newly created session.
- Annotations
- @deprecated
- Deprecated
(Since version 3.5.0) Please use create() instead.
-
def
enableHiveSupport(): Builder
- Annotations
- @deprecated
- Deprecated
enableHiveSupport does not work in Spark Connect
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
master(master: String): Builder
- Annotations
- @deprecated
- Deprecated
master does not work in Spark Connect, please use remote instead