fnck_sql::expression::function::scala

Trait ScalarFunctionImpl

Source
pub trait ScalarFunctionImpl:
    Debug
    + Send
    + Sync
    + Serialize
    + Deserialize {
    // Required methods
    fn eval(
        &self,
        args: &[ScalarExpression],
        tuple: &Tuple,
        schema: &[ColumnRef],
    ) -> Result<DataValue, DatabaseError>;
    fn monotonicity(&self) -> Option<FuncMonotonicity>;
    fn return_type(&self) -> &LogicalType;
    fn summary(&self) -> &FunctionSummary;
}

Required Methods§

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn ScalarFunctionImpl + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn ScalarFunctionImpl + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn ScalarFunctionImpl + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn ScalarFunctionImpl + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§