Trait JITFunctionFactory

Source
pub trait JITFunctionFactory: Send + Sync {
    // Required methods
    fn create(
        &self,
        expression: &str,
        array_type_id: TypeId,
    ) -> CoreResult<Box<dyn JITFunction>>;
    fn supports_array_type(&self, array_type_id: TypeId) -> bool;
}
Expand description

A factory for creating JIT functions for specific array implementations.

Required Methods§

Source

fn create( &self, expression: &str, array_type_id: TypeId, ) -> CoreResult<Box<dyn JITFunction>>

Create a new JIT function for the given expression and array type.

Source

fn supports_array_type(&self, array_type_id: TypeId) -> bool

Check if this factory supports the given array type.

Implementors§