You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by ga...@apache.org on 2025/11/23 11:51:52 UTC
(datafusion) 01/01: Add iter method to extensions
This is an automated email from the ASF dual-hosted git repository.
gabotechs pushed a commit to branch add-iter-method-to-extensions
in repository https://gitbox.apache.org/repos/asf/datafusion.git
commit 93c7bd2ad8d327da2340247fc3298d195700356e
Author: Gabriel Musat Mestre <ga...@datadoghq.com>
AuthorDate: Sun Nov 23 12:51:28 2025 +0100
Add iter method to extensions
---
datafusion/common/src/config.rs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/datafusion/common/src/config.rs b/datafusion/common/src/config.rs
index 212db653f7..db9c7d4196 100644
--- a/datafusion/common/src/config.rs
+++ b/datafusion/common/src/config.rs
@@ -1524,6 +1524,14 @@ impl Extensions {
let e = self.0.get_mut(T::PREFIX)?;
e.0.as_any_mut().downcast_mut()
}
+
+ /// Iterates all the config extension entries yielding their prefix and their
+ /// [ExtensionOptions] implementation.
+ pub fn iter(
+ &self,
+ ) -> impl Iterator<Item = (&'static str, &Box<dyn ExtensionOptions>)> {
+ self.0.iter().map(|(k, v)| (*k, &v.0))
+ }
}
#[derive(Debug)]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org