Trait datafusion::api::ScalarFunction
[−]
[src]
pub trait ScalarFunction { fn name(&self) -> String; fn args(&self) -> Vec<Field>; fn return_type(&self) -> DataType; fn execute(&self, args: Vec<Value>) -> Result<Value, Box<String>>; }
Scalar function. User-defined implementations will be dynamically loaded at runtime.
Required Methods
fn name(&self) -> String
fn args(&self) -> Vec<Field>
fn return_type(&self) -> DataType
fn execute(&self, args: Vec<Value>) -> Result<Value, Box<String>>
Implementors
impl ScalarFunction for SqrtFunction
impl ScalarFunction for STPointFunc
impl ScalarFunction for STAsText