Extension

Trait Extension 

Source
pub trait Extension: Debug {
    // Required method
    fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _config: ExecutionConfig,
        _builder: &'life1 mut DftSessionStateBuilder,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn register_on_ctx(
        &self,
        _config: &ExecutionConfig,
        _ctx: &mut SessionContext,
    ) -> Result<()> { ... }
}

Required Methods§

Source

fn register<'life0, 'life1, 'async_trait>( &'life0 self, _config: ExecutionConfig, _builder: &'life1 mut DftSessionStateBuilder, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Registers this extension with the DataFusion [SessionStateBuilder]

Provided Methods§

Source

fn register_on_ctx( &self, _config: &ExecutionConfig, _ctx: &mut SessionContext, ) -> Result<()>

Implementors§