Skip to main content

AggregateClassifier

Trait AggregateClassifier 

Source
pub trait AggregateClassifier {
    // Required method
    fn is_registered_aggregate(&self, name: &str) -> bool;

    // Provided method
    fn is_registered_aggregate_with_control(
        &self,
        name: &str,
        control: &ProductionControl<'_>,
    ) -> Result<bool, SQLError> { ... }
}
Expand description

Classification hook for engine-registered aggregate functions. Built-in aggregates are always recognised; the callback extends that set without making the planner depend on the engine.

Required Methods§

Provided Methods§

Source

fn is_registered_aggregate_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError>

Native catalogs override this observation to admit lookup scratch before allocation. External classifiers keep their existing callback boundary.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> AggregateClassifier for F
where F: Fn(&str) -> bool,