pub trait FileFormatFactory: Sync + Send + GetExt {
    // Required methods
    fn create(
        &self,
        state: &SessionState,
        format_options: &HashMap<String, String>,
    ) -> Result<Arc<dyn FileFormat>>;
    fn default(&self) -> Arc<dyn FileFormat>;
}
Expand description

Factory for creating FileFormat instances based on session and command level options

Users can provide their own FileFormatFactory to support arbitrary file formats

Required Methods§

source

fn create( &self, state: &SessionState, format_options: &HashMap<String, String>, ) -> Result<Arc<dyn FileFormat>>

Initialize a FileFormat and configure based on session and command level options

source

fn default(&self) -> Arc<dyn FileFormat>

Initialize a FileFormat with all options set to default values

Implementors§