Struct datafusion_expr::window_frame::WindowFrame
source · pub struct WindowFrame {
pub units: WindowFrameUnits,
pub start_bound: WindowFrameBound,
pub end_bound: WindowFrameBound,
}
Expand description
The frame-spec determines which output rows are read by an aggregate window function.
The ending frame boundary can be omitted (if the BETWEEN and AND keywords that surround the starting frame boundary are also omitted), in which case the ending frame boundary defaults to CURRENT ROW.
Fields§
§units: WindowFrameUnits
A frame type - either ROWS, RANGE or GROUPS
start_bound: WindowFrameBound
A starting frame boundary
end_bound: WindowFrameBound
An ending frame boundary
Implementations§
Trait Implementations§
source§impl Clone for WindowFrame
impl Clone for WindowFrame
source§fn clone(&self) -> WindowFrame
fn clone(&self) -> WindowFrame
Returns a copy of the value. Read more
1.0.0 · 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 WindowFrame
impl Debug for WindowFrame
source§impl Display for WindowFrame
impl Display for WindowFrame
source§impl Hash for WindowFrame
impl Hash for WindowFrame
source§impl PartialEq<WindowFrame> for WindowFrame
impl PartialEq<WindowFrame> for WindowFrame
source§fn eq(&self, other: &WindowFrame) -> bool
fn eq(&self, other: &WindowFrame) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<WindowFrame> for WindowFrame
impl TryFrom<WindowFrame> for WindowFrame
§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
source§fn try_from(value: WindowFrame) -> Result<Self>
fn try_from(value: WindowFrame) -> Result<Self>
Performs the conversion.
impl Eq for WindowFrame
impl StructuralEq for WindowFrame
impl StructuralPartialEq for WindowFrame
Auto Trait Implementations§
impl RefUnwindSafe for WindowFrame
impl Send for WindowFrame
impl Sync for WindowFrame
impl Unpin for WindowFrame
impl UnwindSafe for WindowFrame
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.