public class RuntimeConfig
extends Object
SparkSession.conf
.
Options set here are automatically propagated to the Hadoop configuration during I/O.
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Returns the value of Spark runtime configuration property for the given key.
|
String |
get(String key,
String default_)
Returns the value of Spark runtime configuration property for the given key.
|
scala.collection.immutable.Map<String,String> |
getAll()
Returns all properties set in this conf.
|
scala.Option<String> |
getOption(String key)
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 |
set(String key,
boolean value)
Sets the given Spark runtime configuration property.
|
void |
set(String key,
long value)
Sets the given Spark runtime configuration property.
|
void |
set(String key,
String value)
Sets the given Spark runtime configuration property.
|
void |
unset(String key)
Resets the configuration property for the given key.
|
public void set(String key, String value)
key
- (undocumented)value
- (undocumented)public void set(String key, boolean value)
key
- (undocumented)value
- (undocumented)public void set(String key, long value)
key
- (undocumented)value
- (undocumented)public String get(String key) throws java.util.NoSuchElementException
key
- (undocumented)java.util.NoSuchElementException
- if the key is not set and does not have a default
valuepublic String get(String key, String default_)
key
- (undocumented)default_
- (undocumented)public scala.collection.immutable.Map<String,String> getAll()
public scala.Option<String> getOption(String key)
key
- (undocumented)public void unset(String key)
key
- (undocumented)public boolean isModifiable(String key)
key
- (undocumented)true
if the configuration property is modifiable. For static SQL, Spark Core,
invalid (not existing) and other non-modifiable configuration properties,
the returned value is false
.