Expand description
There are five ways to describe starting and ending frame boundaries:
- UNBOUNDED PRECEDING
PRECEDING - CURRENT ROW
FOLLOWING - UNBOUNDED FOLLOWING
in this implementation we’ll only allow
Variants
Preceding(Option<u64>)
-
UNBOUNDED PRECEDING The frame boundary is the first row in the partition.
-
PRECEDING must be a non-negative constant numeric expression. The boundary is a row that is “units” prior to the current row.
CurrentRow
- The current row.
For RANGE and GROUPS frame types, peers of the current row are also included in the frame, unless specifically excluded by the EXCLUDE clause. This is true regardless of whether CURRENT ROW is used as the starting or ending frame boundary.
Following(Option<u64>)
-
This is the same as “
PRECEDING” except that the boundary is units after the current rather than before the current row. -
UNBOUNDED FOLLOWING The frame boundary is the last row in the partition.
Trait Implementations
sourceimpl Clone for WindowFrameBound
impl Clone for WindowFrameBound
sourcefn clone(&self) -> WindowFrameBound
fn clone(&self) -> WindowFrameBound
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowFrameBound
impl Debug for WindowFrameBound
sourceimpl Display for WindowFrameBound
impl Display for WindowFrameBound
sourceimpl From<WindowFrameBound> for WindowFrameBound
impl From<WindowFrameBound> for WindowFrameBound
sourcefn from(value: WindowFrameBound) -> Self
fn from(value: WindowFrameBound) -> Self
Converts to this type from the input type.
sourceimpl Hash for WindowFrameBound
impl Hash for WindowFrameBound
sourceimpl Ord for WindowFrameBound
impl Ord for WindowFrameBound
sourceimpl PartialEq<WindowFrameBound> for WindowFrameBound
impl PartialEq<WindowFrameBound> for WindowFrameBound
sourceimpl PartialOrd<WindowFrameBound> for WindowFrameBound
impl PartialOrd<WindowFrameBound> for WindowFrameBound
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for WindowFrameBound
impl Eq for WindowFrameBound
impl StructuralEq for WindowFrameBound
Auto Trait Implementations
impl RefUnwindSafe for WindowFrameBound
impl Send for WindowFrameBound
impl Sync for WindowFrameBound
impl Unpin for WindowFrameBound
impl UnwindSafe for WindowFrameBound
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.