WindowAggregate

Trait WindowAggregate 

Source
pub trait WindowAggregate<A, T>: Aggregate<A, T>{
    // Required methods
    fn value(&self, _: Option<&A>) -> Result<T>;
    fn inverse(&self, _: &mut Context<'_>, _: &mut A) -> Result<()>;
}
Expand description

feature = "window" WindowAggregate is the callback interface for user-defined aggregate window function.

Required Methods§

Source

fn value(&self, _: Option<&A>) -> Result<T>

Returns the current value of the aggregate. Unlike xFinal, the implementation should not delete any context.

Source

fn inverse(&self, _: &mut Context<'_>, _: &mut A) -> Result<()>

Removes a row from the current window.

Implementors§