pub struct Window;Expand description
pyspark.sql.window.Window
Static builder for creating window specifications.
Implementations§
Source§impl Window
impl Window
Sourcepub const fn unbounded_preceding() -> FrameBound
pub const fn unbounded_preceding() -> FrameBound
UNBOUNDED PRECEDING frame bound.
Sourcepub const fn current_row() -> FrameBound
pub const fn current_row() -> FrameBound
CURRENT ROW frame bound.
Sourcepub const fn unbounded_following() -> FrameBound
pub const fn unbounded_following() -> FrameBound
UNBOUNDED FOLLOWING frame bound.
Sourcepub fn partition_by(cols: Vec<Expression>) -> WindowSpec
pub fn partition_by(cols: Vec<Expression>) -> WindowSpec
Create a WindowSpec partitioned by the given columns.
Sourcepub fn order_by(sorts: Vec<SortOrder>) -> WindowSpec
pub fn order_by(sorts: Vec<SortOrder>) -> WindowSpec
Create a WindowSpec ordered by the given sort orders.
Sourcepub fn rows_between(start: FrameBound, end: FrameBound) -> WindowSpec
pub fn rows_between(start: FrameBound, end: FrameBound) -> WindowSpec
Create a WindowSpec with a ROWS frame between the given bounds.
Sourcepub fn range_between(start: FrameBound, end: FrameBound) -> WindowSpec
pub fn range_between(start: FrameBound, end: FrameBound) -> WindowSpec
Create a WindowSpec with a RANGE frame between the given bounds.
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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