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
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract StringReturns the value of Spark runtime configuration property for the given key.abstract StringReturns the value of Spark runtime configuration property for the given key.getAll()Returns all properties set in this conf.abstract scala.Option<String>Returns the value of Spark runtime configuration property for the given key.abstract booleanisModifiable(String key) Indicates whether the configuration property with the given key is modifiable in the current session.voidSets the given Spark runtime configuration property.voidSets the given Spark runtime configuration property.abstract voidSets the given Spark runtime configuration property.abstract voidResets the configuration property for the given key.
- 
Constructor Details- 
RuntimeConfigpublic RuntimeConfig()
 
- 
- 
Method Details- 
getReturns the value of Spark runtime configuration property for the given key. If the key is not set yet, return its default value if possible, otherwiseNoSuchElementExceptionwill be thrown.- Parameters:
- key- (undocumented)
- Returns:
- (undocumented)
- Throws:
- NoSuchElementException- if the key is not set and does not have a default value
- Since:
- 2.0.0
 
- 
getReturns the value of Spark runtime configuration property for the given key. If the key is not set yet, return the user givendefault. This is useful when its default value defined by Apache Spark is not the desired one.- Parameters:
- key- (undocumented)
- default_- (undocumented)
- Returns:
- (undocumented)
- Since:
- 2.0.0
 
- 
getAllReturns all properties set in this conf.- Returns:
- (undocumented)
- Since:
- 2.0.0
 
- 
getOptionReturns the value of Spark runtime configuration property for the given key. If the key is not set yet, return its default value if possible, otherwiseNonewill be returned.- Parameters:
- key- (undocumented)
- Returns:
- (undocumented)
- Since:
- 2.0.0
 
- 
isModifiableIndicates whether the configuration property with the given key is modifiable in the current session.- Parameters:
- key- (undocumented)
- Returns:
- trueif the configuration property is modifiable. For static SQL, Spark Core, invalid (not existing) and other non-modifiable configuration properties, the returned value is- false.
- Since:
- 2.4.0
 
- 
setSets the given Spark runtime configuration property.- Parameters:
- key- (undocumented)
- value- (undocumented)
- Since:
- 2.0.0
 
- 
setSets the given Spark runtime configuration property.- Parameters:
- key- (undocumented)
- value- (undocumented)
- Since:
- 2.0.0
 
- 
setSets the given Spark runtime configuration property.- Parameters:
- key- (undocumented)
- value- (undocumented)
- Since:
- 2.0.0
 
- 
unsetResets the configuration property for the given key.- Parameters:
- key- (undocumented)
- Since:
- 2.0.0
 
 
-