Trait mz_expr::scalar::func::EagerUnaryFunc
source · trait EagerUnaryFunc<'a> {
type Input: DatumType<'a, EvalError>;
type Output: DatumType<'a, EvalError>;
// Required methods
fn call(&self, input: Self::Input) -> Self::Output;
fn output_type(&self, input_type: ColumnType) -> ColumnType;
// Provided methods
fn propagates_nulls(&self) -> bool { ... }
fn introduces_nulls(&self) -> bool { ... }
fn could_error(&self) -> bool { ... }
fn preserves_uniqueness(&self) -> bool { ... }
fn inverse(&self) -> Option<UnaryFunc> { ... }
fn is_monotone(&self) -> bool { ... }
}
Expand description
A description of an SQL unary function that operates on eagerly evaluated expressions
Required Associated Types§
Required Methods§
fn call(&self, input: Self::Input) -> Self::Output
sourcefn output_type(&self, input_type: ColumnType) -> ColumnType
fn output_type(&self, input_type: ColumnType) -> ColumnType
The output ColumnType of this function
Provided Methods§
sourcefn propagates_nulls(&self) -> bool
fn propagates_nulls(&self) -> bool
Whether this function will produce NULL on NULL input
sourcefn introduces_nulls(&self) -> bool
fn introduces_nulls(&self) -> bool
Whether this function will produce NULL on non-NULL input
sourcefn could_error(&self) -> bool
fn could_error(&self) -> bool
Whether this function could produce an error
sourcefn preserves_uniqueness(&self) -> bool
fn preserves_uniqueness(&self) -> bool
Whether this function preserves uniqueness