pub struct PartitionEvaluatorArgs<'a> { /* private fields */ }
Expand description
Arguments passed to created user-defined window function state during physical execution.
Implementations§
Source§impl<'a> PartitionEvaluatorArgs<'a>
impl<'a> PartitionEvaluatorArgs<'a>
Sourcepub fn new(
input_exprs: &'a [Arc<dyn PhysicalExpr>],
input_types: &'a [DataType],
is_reversed: bool,
ignore_nulls: bool,
) -> PartitionEvaluatorArgs<'a>
pub fn new( input_exprs: &'a [Arc<dyn PhysicalExpr>], input_types: &'a [DataType], is_reversed: bool, ignore_nulls: bool, ) -> PartitionEvaluatorArgs<'a>
Create an instance of PartitionEvaluatorArgs
.
§Arguments
input_exprs
- The expressions passed as arguments to the user-defined window function.input_types
- The data types corresponding to the arguments to the user-defined window function.is_reversed
- Set totrue
if and only if the user-defined window function is reversible and is reversed.ignore_nulls
- Set totrue
whenIGNORE NULLS
is specified.
Sourcepub fn input_exprs(&self) -> &'a [Arc<dyn PhysicalExpr>]
pub fn input_exprs(&self) -> &'a [Arc<dyn PhysicalExpr>]
Returns the expressions passed as arguments to the user-defined window function.
Sourcepub fn input_types(&self) -> &'a [DataType]
pub fn input_types(&self) -> &'a [DataType]
Returns the DataType
s corresponding to the input expressions
to the user-defined window function.
Sourcepub fn is_reversed(&self) -> bool
pub fn is_reversed(&self) -> bool
Returns true
when the user-defined window function is
reversed, otherwise returns false
.
Sourcepub fn ignore_nulls(&self) -> bool
pub fn ignore_nulls(&self) -> bool
Returns true
when IGNORE NULLS
is specified, otherwise
returns false
.
Trait Implementations§
Source§impl<'a> Debug for PartitionEvaluatorArgs<'a>
impl<'a> Debug for PartitionEvaluatorArgs<'a>
Source§impl<'a> Default for PartitionEvaluatorArgs<'a>
impl<'a> Default for PartitionEvaluatorArgs<'a>
Source§fn default() -> PartitionEvaluatorArgs<'a>
fn default() -> PartitionEvaluatorArgs<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PartitionEvaluatorArgs<'a>
impl<'a> !RefUnwindSafe for PartitionEvaluatorArgs<'a>
impl<'a> Send for PartitionEvaluatorArgs<'a>
impl<'a> Sync for PartitionEvaluatorArgs<'a>
impl<'a> Unpin for PartitionEvaluatorArgs<'a>
impl<'a> !UnwindSafe for PartitionEvaluatorArgs<'a>
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> 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