Aggregate

Trait Aggregate 

Source
pub trait Aggregate {
    // Required methods
    fn update(&mut self, headers: &Headers, row: &Row) -> Result<()>;
    fn value(&self) -> String;
    fn colname(&self) -> &str;
}
Expand description

Aggregates used while reducing must implement this trait.

Required Methods§

Source

fn update(&mut self, headers: &Headers, row: &Row) -> Result<()>

Updates the current value with the next row of data.

Source

fn value(&self) -> String

Gets the current value.

Source

fn colname(&self) -> &str

Gets this aggregate’s colname

Implementors§