pub trait ExprBuiltins: Sized {
// Required methods
fn cast(&self, dtype: DType) -> Result<Expression, VortexError>;
fn get_item(
&self,
field_name: impl Into<FieldName>,
) -> Result<Expression, VortexError>;
fn is_null(&self) -> Result<Expression, VortexError>;
fn mask(&self, mask: Expression) -> Result<Expression, VortexError>;
fn not(&self) -> Result<Expression, VortexError>;
}Expand description
A collection of built-in scalar functions that can be applied to expressions or arrays.
Required Methods§
Sourcefn cast(&self, dtype: DType) -> Result<Expression, VortexError>
fn cast(&self, dtype: DType) -> Result<Expression, VortexError>
Cast to the given data type.
Sourcefn get_item(
&self,
field_name: impl Into<FieldName>,
) -> Result<Expression, VortexError>
fn get_item( &self, field_name: impl Into<FieldName>, ) -> Result<Expression, VortexError>
Get item by field name (for struct types).
Sourcefn is_null(&self) -> Result<Expression, VortexError>
fn is_null(&self) -> Result<Expression, VortexError>
Is null check.
Sourcefn mask(&self, mask: Expression) -> Result<Expression, VortexError>
fn mask(&self, mask: Expression) -> Result<Expression, VortexError>
Mask the expression using the given boolean mask. The resulting expression’s validity is the intersection of the original expression’s validity.
Sourcefn not(&self) -> Result<Expression, VortexError>
fn not(&self) -> Result<Expression, VortexError>
Boolean negation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.