Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
FileFormatFactory in datafusion::datasource::file_format - Rust
[go: Go Back, main page]

Trait FileFormatFactory

Source
pub trait FileFormatFactory:
    Sync
    + Send
    + GetExt
    + Debug {
    // Required methods
    fn create(
        &self,
        state: &dyn Session,
        format_options: &HashMap<String, String>,
    ) -> Result<Arc<dyn FileFormat>, DataFusionError>;
    fn default(&self) -> Arc<dyn FileFormat>;
    fn as_any(&self) -> &(dyn Any + 'static);
}
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: &dyn Session, format_options: &HashMap<String, String>, ) -> Result<Arc<dyn FileFormat>, DataFusionError>

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

Source

fn as_any(&self) -> &(dyn Any + 'static)

Returns the table source as Any so that it can be downcast to a specific implementation.

Implementors§