pub trait FunctionRegistry {
    // Required methods
    fn udfs(&self) -> HashSet<String>;
    fn udf(&self, name: &str) -> Result<Arc<ScalarUDF>>;
    fn udaf(&self, name: &str) -> Result<Arc<AggregateUDF>>;
    fn udwf(&self, name: &str) -> Result<Arc<WindowUDF>>;
}
Expand description

A registry knows how to build logical expressions out of user-defined function’ names

Required Methods§

source

fn udfs(&self) -> HashSet<String>

Set of all available udfs.

source

fn udf(&self, name: &str) -> Result<Arc<ScalarUDF>>

Returns a reference to the udf named name.

source

fn udaf(&self, name: &str) -> Result<Arc<AggregateUDF>>

Returns a reference to the udaf named name.

source

fn udwf(&self, name: &str) -> Result<Arc<WindowUDF>>

Returns a reference to the udwf named name.

Implementors§