Trait datafusion::execution::context::FunctionFactory

source ·
pub trait FunctionFactory: Sync + Send {
    // Required method
    fn create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 SessionState,
        statement: CreateFunction
    ) -> Pin<Box<dyn Future<Output = Result<RegisterFunction>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A pluggable interface to handle CREATE FUNCTION statements and interact with SessionState to registers new udf, udaf or udwf.

Required Methods§

source

fn create<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 SessionState, statement: CreateFunction ) -> Pin<Box<dyn Future<Output = Result<RegisterFunction>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handles creation of user defined function specified in CreateFunction statement

Implementors§