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

Method get_file_format_factory

datafusion/core/src/execution/session_state.rs:909–914  ·  view source on GitHub ↗

Retrieves a [FileFormatFactory] based on file extension which has been registered via SessionContext::register_file_format. Extensions are not case sensitive.

(
        &self,
        ext: &str,
    )

Source from the content-addressed store, hash-verified

907 /// Retrieves a [FileFormatFactory] based on file extension which has been registered
908 /// via SessionContext::register_file_format. Extensions are not case sensitive.
909 pub fn get_file_format_factory(
910 &self,
911 ext: &str,
912 ) -> Option<Arc<dyn FileFormatFactory>> {
913 self.file_formats.get(&ext.to_lowercase()).cloned()
914 }
915
916 /// Get a new TaskContext to run in this session
917 pub fn task_ctx(&self) -> Arc<TaskContext> {

Callers 4

createMethod · 0.80
get_execFunction · 0.80
infer_optionsMethod · 0.80

Calls 2

clonedMethod · 0.45
getMethod · 0.45

Tested by 1