Trait vortex_expr::VortexExpr

source ·
pub trait VortexExpr:
    Debug
    + Send
    + Sync
    + PartialEq<dyn Any>
    + Display {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn evaluate(&self, batch: &ArrayData) -> VortexResult<ArrayData>;

    // Provided methods
    fn collect_references<'a>(&'a self, _references: &mut HashSet<&'a Field>) { ... }
    fn references(&self) -> HashSet<&Field> { ... }
}
Expand description

Represents logical operation on [ArrayData]s

Required Methods§

source

fn as_any(&self) -> &dyn Any

Convert expression reference to reference of Any type

source

fn evaluate(&self, batch: &ArrayData) -> VortexResult<ArrayData>

Compute result of expression on given batch producing a new batch

Provided Methods§

source

fn collect_references<'a>(&'a self, _references: &mut HashSet<&'a Field>)

Accumulate all field references from this expression and its children in the provided set

source

fn references(&self) -> HashSet<&Field>

Accumulate all field references from this expression and its children in a new set

Implementors§