pub enum WindowFunc {
RowNumber,
Rank,
DenseRank,
PercentRank,
CumeDist,
Ntile(u32),
Lag {
expr: Box<Expr>,
offset: u32,
default: Option<Box<Expr>>,
},
Lead {
expr: Box<Expr>,
offset: u32,
default: Option<Box<Expr>>,
},
FirstValue(Box<Expr>),
LastValue(Box<Expr>),
Aggregate(Aggregate),
}Expand description
The function evaluated over the window.
Variants§
RowNumber
ROW_NUMBER().
Rank
RANK().
DenseRank
DENSE_RANK().
PercentRank
PERCENT_RANK().
CumeDist
CUME_DIST().
Ntile(u32)
NTILE(n).
Lag
LAG(expr, offset [, default]).
Fields
Lead
LEAD(expr, offset [, default]).
Fields
FirstValue(Box<Expr>)
FIRST_VALUE(expr).
LastValue(Box<Expr>)
LAST_VALUE(expr).
Aggregate(Aggregate)
An aggregate evaluated over the window (SUM(x) OVER (..), running totals).
Trait Implementations§
Source§impl Clone for WindowFunc
impl Clone for WindowFunc
Source§fn clone(&self) -> WindowFunc
fn clone(&self) -> WindowFunc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowFunc
impl Debug for WindowFunc
Source§impl PartialEq for WindowFunc
impl PartialEq for WindowFunc
impl StructuralPartialEq for WindowFunc
Auto Trait Implementations§
impl Freeze for WindowFunc
impl RefUnwindSafe for WindowFunc
impl Send for WindowFunc
impl Sync for WindowFunc
impl Unpin for WindowFunc
impl UnsafeUnpin for WindowFunc
impl UnwindSafe for WindowFunc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more