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§
fn is_registered_aggregate(&self, name: &str) -> bool
Provided Methods§
Sourcefn is_registered_aggregate_with_control(
&self,
name: &str,
control: &ProductionControl<'_>,
) -> Result<bool, SQLError>
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".