pub struct WindowSpec {
pub partition_spec: Vec<Expression>,
pub order_spec: Vec<SortOrder>,
pub frame_spec: Option<Box<WindowFrame>>,
}
Expand description
A window specification that defines the partitioning, ordering, and frame boundaries.
Recommended to create a WindowSpec using Window and not directly
Fields§
§partition_spec: Vec<Expression>
§order_spec: Vec<SortOrder>
§frame_spec: Option<Box<WindowFrame>>
Implementations§
Source§impl WindowSpec
impl WindowSpec
pub fn new( partition_spec: Vec<Expression>, order_spec: Vec<SortOrder>, frame_spec: Option<Box<WindowFrame>>, ) -> WindowSpec
pub fn partition_by<I: ToVecExpr>(self, cols: I) -> WindowSpec
pub fn order_by<I, T>(self, cols: I) -> WindowSpecwhere
T: ToExpr,
I: IntoIterator<Item = T>,
pub fn rows_between(self, start: i64, end: i64) -> WindowSpec
pub fn range_between(self, start: i64, end: i64) -> WindowSpec
Trait Implementations§
Source§impl Clone for WindowSpec
impl Clone for WindowSpec
Source§fn clone(&self) -> WindowSpec
fn clone(&self) -> WindowSpec
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 WindowSpec
impl Debug for WindowSpec
Source§impl Default for WindowSpec
impl Default for WindowSpec
Source§fn default() -> WindowSpec
fn default() -> WindowSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowSpec
impl RefUnwindSafe for WindowSpec
impl Send for WindowSpec
impl Sync for WindowSpec
impl Unpin for WindowSpec
impl UnwindSafe for WindowSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request