Retrieves a [FileFormatFactory] based on file extension which has been registered via SessionContext::register_file_format. Extensions are not case sensitive.
(
&self,
ext: &str,
)
| 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> { |