SessionContextOrcExt

Trait SessionContextOrcExt 

Source
pub trait SessionContextOrcExt {
    // Required methods
    fn read_orc<P: DataFilePaths + Send>(
        &self,
        table_paths: P,
        options: OrcReadOptions<'_>,
    ) -> impl Future<Output = Result<DataFrame>> + Send;
    fn register_orc(
        &self,
        name: &str,
        table_path: &str,
        options: OrcReadOptions<'_>,
    ) -> impl Future<Output = Result<()>> + Send;
}
Expand description

Exposes new functions for registering ORC tables onto a DataFusion SessionContext to enable querying them using the SQL or DataFrame API.

Required Methods§

Source

fn read_orc<P: DataFilePaths + Send>( &self, table_paths: P, options: OrcReadOptions<'_>, ) -> impl Future<Output = Result<DataFrame>> + Send

Source

fn register_orc( &self, name: &str, table_path: &str, options: OrcReadOptions<'_>, ) -> impl Future<Output = Result<()>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SessionContextOrcExt for SessionContext

Source§

async fn read_orc<P: DataFilePaths + Send>( &self, table_paths: P, options: OrcReadOptions<'_>, ) -> Result<DataFrame>

Source§

async fn register_orc( &self, name: &str, table_path: &str, options: OrcReadOptions<'_>, ) -> Result<()>

Implementors§