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

Method alter_with_string_hash_map

datafusion/common/src/config.rs:2398–2406  ·  view source on GitHub ↗

Modifies the current `TableOptions` instance with settings from a hash map. # Parameters `settings`: A hash map where each key-value pair represents a configuration setting. # Returns A result indicating success or failure in applying the settings.

(
        &mut self,
        settings: &HashMap<String, String>,
    )

Source from the content-addressed store, hash-verified

2396 ///
2397 /// A result indicating success or failure in applying the settings.
2398 pub fn alter_with_string_hash_map(
2399 &mut self,
2400 settings: &HashMap<String, String>,
2401 ) -> Result<()> {
2402 for (k, v) in settings {
2403 self.set(k, v)?;
2404 }
2405 Ok(())
2406 }
2407
2408 /// Retrieves all configuration entries from this `TableOptions`.
2409 ///

Calls 1

setMethod · 0.45