Package org.apache.spark.sql
Class RuntimeConfig
Object
org.apache.spark.sql.RuntimeConfig
Runtime configuration interface for Spark. To access this, use
SparkSession.conf
.
Options set here are automatically propagated to the Hadoop configuration during I/O.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of Spark runtime configuration property for the given key.Returns the value of Spark runtime configuration property for the given key.getAll()
Returns all properties set in this conf.scala.Option<String>
Returns the value of Spark runtime configuration property for the given key.boolean
isModifiable
(String key) Indicates whether the configuration property with the given key is modifiable in the current session.void
Sets the given Spark runtime configuration property.void
Sets the given Spark runtime configuration property.void
Sets the given Spark runtime configuration property.void
Resets the configuration property for the given key.
-
Method Details
-
set
Sets the given Spark runtime configuration property.- Parameters:
key
- (undocumented)value
- (undocumented)- Since:
- 2.0.0
-
set
Sets the given Spark runtime configuration property.- Parameters:
key
- (undocumented)value
- (undocumented)- Since:
- 2.0.0
-
set
Sets the given Spark runtime configuration property.- Parameters:
key
- (undocumented)value
- (undocumented)- Since:
- 2.0.0
-
get
Returns the value of Spark runtime configuration property for the given key.- Parameters:
key
- (undocumented)- Returns:
- (undocumented)
- Throws:
NoSuchElementException
- if the key is not set and does not have a default value- Since:
- 2.0.0
-
get
Returns the value of Spark runtime configuration property for the given key.- Parameters:
key
- (undocumented)default_
- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
getAll
Returns all properties set in this conf.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
getOption
Returns the value of Spark runtime configuration property for the given key.- Parameters:
key
- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
unset
Resets the configuration property for the given key.- Parameters:
key
- (undocumented)- Since:
- 2.0.0
-
isModifiable
Indicates whether the configuration property with the given key is modifiable in the current session.- Parameters:
key
- (undocumented)- Returns:
true
if the configuration property is modifiable. For static SQL, Spark Core, invalid (not existing) and other non-modifiable configuration properties, the returned value isfalse
.- Since:
- 2.4.0
-