orc_rust::datafusion

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

Object Safety§

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§