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
sourceimpl ConfigOptions
impl ConfigOptions
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
to 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 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
sourceimpl Clone for ConfigOptions
impl Clone for ConfigOptions
sourcefn clone(&self) -> ConfigOptions
fn clone(&self) -> ConfigOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConfigOptions
impl Debug for ConfigOptions
Auto Trait Implementations
impl RefUnwindSafe for ConfigOptions
impl Send for ConfigOptions
impl Sync for ConfigOptions
impl Unpin for ConfigOptions
impl UnwindSafe for ConfigOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more