Skip to main content

OperatorProvider

Trait OperatorProvider 

Source
pub trait OperatorProvider: Send + Sync {
    // Required methods
    fn logical_name(&self) -> &str;
    fn plan(
        &self,
        args: PlannerArgs<'_>,
    ) -> Result<Arc<dyn ExecutionPlan>, FnError>;
}
Expand description

A custom physical operator factory.

Required Methods§

Source

fn logical_name(&self) -> &str

The logical name of this operator ("hash_join_geo", …).

Source

fn plan(&self, args: PlannerArgs<'_>) -> Result<Arc<dyn ExecutionPlan>, FnError>

Construct an ExecutionPlan for an instance of this operator.

§Errors

Returns FnError on planning failure (incompatible inputs, bad configuration).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§