pub struct PreparedWindowPlan { /* private fields */ }Implementations§
Source§impl PreparedWindowPlan
impl PreparedWindowPlan
pub fn projections(&self) -> &[ProjectionPlan]
Sourcepub fn take_set_returning_keys(
&mut self,
returns_set: &mut dyn FnMut(&ScalarExpr) -> Result<bool, SQLError>,
) -> Result<Vec<(InternalColumnRef, ScalarExpr)>, SQLError>
pub fn take_set_returning_keys( &mut self, returns_set: &mut dyn FnMut(&ScalarExpr) -> Result<bool, SQLError>, ) -> Result<Vec<(InternalColumnRef, ScalarExpr)>, SQLError>
Move every partition or ordering key that returns_set classifies as set-returning into an internal column the input must supply, and return those keys in first-use order. A window’s PARTITION BY and ORDER BY are processed like a target list, so PostgreSQL evaluates their set-returning calls in a projection below the window, which expands its input rows; identical keys share one column. Every target-list subexpression equal to a key then reads the key’s column, as set_plan_references makes an upper target list read an equal lower output, so a call that the target list repeats is evaluated once instead of expanding the rows again.
Sourcepub fn output_schema(
&self,
context: &dyn FunctionTypeResolver,
input: &RowSchema,
params: &[SQLParam],
) -> Result<RowSchema, SQLError>
pub fn output_schema( &self, context: &dyn FunctionTypeResolver, input: &RowSchema, params: &[SQLParam], ) -> Result<RowSchema, SQLError>
The input schema with one internal column per window call, in pass order.
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedWindowPlan
impl !UnwindSafe for PreparedWindowPlan
impl Freeze for PreparedWindowPlan
impl Send for PreparedWindowPlan
impl Sync for PreparedWindowPlan
impl Unpin for PreparedWindowPlan
impl UnsafeUnpin for PreparedWindowPlan
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<T> ErasedDestructor for Twhere
T: 'static,
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