val spark: SparkSession = ...
scala> spark.sessionState
res0: org.apache.spark.sql.internal.SessionState = org.apache.spark.sql.internal.SessionState@5feb8e9a
BaseSessionStateBuilder — Base for Builders of SessionState
|
Note
|
BaseSessionStateBuilder is an experimental and unstable API. You’ve been warned!.
|
BaseSessionStateBuilder is created when SparkSession is requested for a SessionState (and also when newBuilder is called).
|
Note
|
SessionStateBuilder and HiveSessionStateBuilder are concrete BaseSessionStateBuilder.
|
| Name | Description |
|---|---|
analyzer |
|
catalog |
|
conf |
|
createClone |
|
createQueryExecution |
|
experimentalMethods |
|
CAUTION: FIXME Where is this used? |
|
listenerManager |
|
optimizer |
|
planner |
|
resourceLoader |
|
sqlParser |
|
streamingQueryManager |
|
udfRegistration |
|
Note
|
|
BaseSessionStateBuilder Contract
abstract class BaseSessionStateBuilder {
def newBuilder: NewBuilder
}
| Method | Description |
|---|---|
Function to create a |
Creating BaseSessionStateBuilder Instance
BaseSessionStateBuilder takes the following when created:
-
Optional SessionState
Building SessionState — build Method
build(): SessionState
build creates a SessionState (based on the SharedState of the input SparkSession and properties).