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

Method to_props

datafusion/execution/src/config.rs:499–507  ·  view source on GitHub ↗

Convert configuration options to name-value pairs with values converted to strings. Note that this method will eventually be deprecated and replaced by [`options`]. [`options`]: Self::options

(&self)

Source from the content-addressed store, hash-verified

497 ///
498 /// [`options`]: Self::options
499 pub fn to_props(&self) -> HashMap<String, String> {
500 let mut map = HashMap::new();
501 // copy configs from config_options
502 for entry in self.options.entries() {
503 map.insert(entry.key, entry.value.unwrap_or_default());
504 }
505
506 map
507 }
508
509 /// Add extensions.
510 ///

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
entriesMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected