public class RuntimeConfig
extends java.lang.Object
SparkSession.conf
.
Options set here are automatically propagated to the Hadoop configuration during I/O.
Modifier and Type | Method and Description |
---|---|
protected boolean |
contains(java.lang.String key)
Returns whether a particular key is set.
|
protected <T> T |
get(
Returns the value of Spark runtime configuration property for the given key.
|
protected <T> scala.Option<T> |
get( |
protected <T> T |
get(
Returns the value of Spark runtime configuration property for the given key.
|
java.lang.String |
get(java.lang.String key)
Returns the value of Spark runtime configuration property for the given key.
|
java.lang.String |
get(java.lang.String key,
java.lang.String default_)
Returns the value of Spark runtime configuration property for the given key.
|
scala.collection.immutable.Map<java.lang.String,java.lang.String> |
getAll()
Returns all properties set in this conf.
|
scala.Option<java.lang.String> |
getOption(java.lang.String key)
Returns the value of Spark runtime configuration property for the given key.
|
void |
set(java.lang.String key,
boolean value)
Sets the given Spark runtime configuration property.
|
void |
set(java.lang.String key,
long value)
Sets the given Spark runtime configuration property.
|
void |
set(java.lang.String key,
java.lang.String value)
Sets the given Spark runtime configuration property.
|
void |
unset(java.lang.String key)
Resets the configuration property for the given key.
|
public void set(java.lang.String key, java.lang.String value)
key
- (undocumented)value
- (undocumented)public void set(java.lang.String key, boolean value)
key
- (undocumented)value
- (undocumented)public void set(java.lang.String key, long value)
key
- (undocumented)value
- (undocumented)public java.lang.String get(java.lang.String key) throws java.util.NoSuchElementException
key
- (undocumented)NoSuchElementException
- if the key is not set and does not have a default valuepublic java.lang.String get(java.lang.String key, java.lang.String default_)
key
- (undocumented)default_
- (undocumented)protected <T> T get(entry) throws java.util.NoSuchElementException
entry
- (undocumented)java.util.NoSuchElementException
protected <T> scala.Option<T> get(entry)
protected <T> T get(entry, T default_)
entry
- (undocumented)default_
- (undocumented)public scala.collection.immutable.Map<java.lang.String,java.lang.String> getAll()
public scala.Option<java.lang.String> getOption(java.lang.String key)
key
- (undocumented)public void unset(java.lang.String key)
key
- (undocumented)protected boolean contains(java.lang.String key)
key
- (undocumented)