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

Method extension

datafusion/datasource/src/mod.rs:295–297  ·  view source on GitHub ↗

Borrow the extension of type `T`, if one is attached.

(&self)

Source from the content-addressed store, hash-verified

293
294 /// Borrow the extension of type `T`, if one is attached.
295 pub fn extension<T: Any + Send + Sync>(&self) -> Option<&T> {
296 self.extensions.get::<T>()
297 }
298
299 /// Attach a type-erased extension to this file.
300 ///

Callers 12

try_newMethod · 0.80
copy_to_planMethod · 0.80
get_extensionFunction · 0.80
iterate_queriesFunction · 0.80
is_slt_fileMethod · 0.80
is_slt_fileMethod · 0.80
register_dataMethod · 0.80
find_files_on_diskFunction · 0.80
scan_query_dirMethod · 0.80
discoverMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 4

iterate_queriesFunction · 0.64
is_slt_fileMethod · 0.64
is_slt_fileMethod · 0.64