Enum datafusion::physical_plan::functions::Volatility [−][src]
pub enum Volatility {
Immutable,
Stable,
Volatile,
}
Expand description
A function’s volatility, which defines the functions eligibility for certain optimizations
Variants
Immutable - An immutable function will always return the same output when given the same input. An example of this is BuiltinScalarFunction::Cos.
Stable - A stable function may return different values given the same input accross different queries but must return the same value for a given input within a query. An example of this is BuiltinScalarFunction::Now.
Volatile - A volatile function may change the return value from evaluation to evaluation. Mutiple invocations of a volatile function may return different results when used in the same query. An example of this is BuiltinScalarFunction::Random.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Volatility
impl Send for Volatility
impl Sync for Volatility
impl Unpin for Volatility
impl UnwindSafe for Volatility
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.