Skip to main content

ProjectExpression

Trait ProjectExpression 

Source
pub trait ProjectExpression: Send + Sync {
    // Required method
    fn evaluate(&self, chunk: &DataChunk, row: usize) -> Value;

    // Provided method
    fn evaluate_batch(&self, chunk: &DataChunk) -> ValueVector { ... }
}
Expand description

Expression that can be evaluated to produce a value.

Required Methods§

Source

fn evaluate(&self, chunk: &DataChunk, row: usize) -> Value

Evaluate the expression for a row.

Provided Methods§

Source

fn evaluate_batch(&self, chunk: &DataChunk) -> ValueVector

Evaluate the expression for all rows, returning a vector.

Implementors§