Struct datafusion::logical_expr::Window
source · pub struct Window {
pub input: Arc<LogicalPlan>,
pub window_expr: Vec<Expr>,
pub schema: Arc<DFSchema>,
}
Expand description
Window its input based on a set of window spec and window function (e.g. SUM or RANK)
Fields§
§input: Arc<LogicalPlan>
The incoming logical plan
window_expr: Vec<Expr>
The window function expression
schema: Arc<DFSchema>
The schema description of the window output
Implementations§
source§impl Window
impl Window
sourcepub fn try_new(
window_expr: Vec<Expr>,
input: Arc<LogicalPlan>,
) -> Result<Window, DataFusionError>
pub fn try_new( window_expr: Vec<Expr>, input: Arc<LogicalPlan>, ) -> Result<Window, DataFusionError>
Create a new window operator.
pub fn try_new_with_schema( window_expr: Vec<Expr>, input: Arc<LogicalPlan>, schema: Arc<DFSchema>, ) -> Result<Window, DataFusionError>
Trait Implementations§
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl !RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more