Accumulator

Trait Accumulator 

Source
pub trait Accumulator:
    Send
    + Sync
    + Debug {
    // Required methods
    fn update_value(&mut self, value: &ScalarValue) -> QuillSQLResult<()>;
    fn evaluate(&self) -> QuillSQLResult<ScalarValue>;
}

Required Methods§

Source

fn update_value(&mut self, value: &ScalarValue) -> QuillSQLResult<()>

Updates the accumulator’s state from its input.

Source

fn evaluate(&self) -> QuillSQLResult<ScalarValue>

Returns the final aggregate value, consuming the internal state.

Implementors§