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

Method insert

datafusion/common/src/config.rs:1801–1805  ·  view source on GitHub ↗

Registers a [`ConfigExtension`] with this [`ConfigOptions`]

(&mut self, extension: T)

Source from the content-addressed store, hash-verified

1799
1800 /// Registers a [`ConfigExtension`] with this [`ConfigOptions`]
1801 pub fn insert<T: ConfigExtension>(&mut self, extension: T) {
1802 assert_ne!(T::PREFIX, "datafusion");
1803 let e = ExtensionBox(Box::new(extension));
1804 self.0.insert(T::PREFIX, e);
1805 }
1806
1807 /// Retrieves the extension of the given type if any
1808 pub fn get<T: ConfigExtension>(&self) -> Option<&T> {

Callers 15

mainFunction · 0.45
check_circular_depsFunction · 0.45
parse_main_rs_docsFunction · 0.45
putMethod · 0.45
createMethod · 0.45
register_tableMethod · 0.45
register_schemaMethod · 0.45
register_catalogMethod · 0.45
with_fileMethod · 0.45
try_newMethod · 0.45

Calls 2

ExtensionBoxClass · 0.85
newFunction · 0.85