Struct datafusion::config::ConfigOptions
source · pub struct ConfigOptions { /* private fields */ }
Expand description
Configuration options struct. This can contain values for built-in and custom options
Implementations§
source§impl ConfigOptions
impl ConfigOptions
Create a new ConfigOptions
wrapped in an RwLock and Arc
sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Create new ConfigOptions struct, taking values from environment variables where possible.
For example, setting DATAFUSION_EXECUTION_BATCH_SIZE
will
control datafusion.execution.batch_size
.
sourcepub fn set(&mut self, key: &str, value: ScalarValue)
pub fn set(&mut self, key: &str, value: ScalarValue)
set a configuration option
sourcepub fn set_string(&mut self, key: &str, value: impl Into<String>)
pub fn set_string(&mut self, key: &str, value: impl Into<String>)
set a String
configuration option
sourcepub fn get(&self, key: &str) -> Option<ScalarValue>
pub fn get(&self, key: &str) -> Option<ScalarValue>
get a configuration option
sourcepub fn get_string(&self, key: &str) -> Option<String>
pub fn get_string(&self, key: &str) -> Option<String>
get a string configuration option
sourcepub fn options(&self) -> &HashMap<String, ScalarValue>
pub fn options(&self) -> &HashMap<String, ScalarValue>
Access the underlying hashmap
Trait Implementations§
source§impl Clone for ConfigOptions
impl Clone for ConfigOptions
source§fn clone(&self) -> ConfigOptions
fn clone(&self) -> ConfigOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConfigOptions
impl Debug for ConfigOptions
Print the configurations in an ordered way so that we can directly compare the equality of two ConfigOptions by their debug strings