RuntimeConfig -- Management Interface of Runtime Configuration¶
RuntimeConfig
is the <
[[methods]] .RuntimeConfig API [cols="1,2",options="header",width="100%"] |=== | Method | Description
| <
[source, scala]¶
get(key: String): String get(key: String, default: String): String
| <
[source, scala]¶
getAll: Map[String, String]¶
| <
[source, scala]¶
getOption(key: String): Option[String]¶
| isModifiable
a| [[isModifiable]]
[source, scala]¶
isModifiable(key: String): Boolean¶
(New in 2.4.0)
| <
[source, scala]¶
set(key: String, value: Boolean): Unit set(key: String, value: Long): Unit set(key: String, value: String): Unit
| <
[source, scala]¶
unset(key: String): Unit¶
|===
RuntimeConfig
is available using the <SparkSession
.
[source, scala]¶
scala> :type spark org.apache.spark.sql.SparkSession
scala> :type spark.conf org.apache.spark.sql.RuntimeConfig
.RuntimeConfig, SparkSession and SQLConf image::images/spark-sql-RuntimeConfig.png[align="center"]
RuntimeConfig
is <SparkSession
is requested for <
[[sqlConf]] [[creating-instance]] RuntimeConfig
takes a SQLConf when created.
=== [[get]] get
Method
[source, scala]¶
get(key: String): String get(key: String, default: String): String
get
...FIXME
NOTE: get
is used when...FIXME
=== [[getAll]] getAll
Method
[source, scala]¶
getAll: Map[String, String]¶
getAll
...FIXME
NOTE: getAll
is used when...FIXME
=== [[getOption]] getOption
Method
[source, scala]¶
getOption(key: String): Option[String]¶
getOption
...FIXME
NOTE: getOption
is used when...FIXME
=== [[set]] set
Method
[source, scala]¶
set(key: String, value: Boolean): Unit set(key: String, value: Long): Unit set(key: String, value: String): Unit
set
...FIXME
NOTE: set
is used when...FIXME
=== [[unset]] unset
Method
[source, scala]¶
unset(key: String): Unit¶
unset
...FIXME
NOTE: unset
is used when...FIXME