MCPcopy Create free account
hub / github.com/apache/datafusion / options_mut

Method options_mut

datafusion/execution/src/config.rs:157–159  ·  view source on GitHub ↗

Return a mutable handle to the configuration options. Can be used to set configuration options. ``` use datafusion_execution::config::SessionConfig; let mut config = SessionConfig::new(); config.options_mut().execution.batch_size = 1024; assert_eq!(config.options().execution.batch_size, 1024); ```

(&mut self)

Source from the content-addressed store, hash-verified

155 /// assert_eq!(config.options().execution.batch_size, 1024);
156 /// ```
157 pub fn options_mut(&mut self) -> &mut ConfigOptions {
158 Arc::make_mut(&mut self.options)
159 }
160
161 /// Set a configuration option
162 pub fn set(self, key: &str, value: &ScalarValue) -> Self {

Calls

no outgoing calls