struct AliasedWindowUDFImpl {
inner: UdfEq<Arc<dyn WindowUDFImpl>>,
aliases: Vec<String>,
}Expand description
WindowUDF that adds an alias to the underlying function. It is better to
implement WindowUDFImpl, which supports aliases, directly if possible.
Fields§
§inner: UdfEq<Arc<dyn WindowUDFImpl>>§aliases: Vec<String>Implementations§
Source§impl AliasedWindowUDFImpl
impl AliasedWindowUDFImpl
pub fn new( inner: Arc<dyn WindowUDFImpl>, new_aliases: impl IntoIterator<Item = &'static str>, ) -> Self
Trait Implementations§
Source§impl Debug for AliasedWindowUDFImpl
impl Debug for AliasedWindowUDFImpl
Source§impl Hash for AliasedWindowUDFImpl
impl Hash for AliasedWindowUDFImpl
Source§impl PartialEq for AliasedWindowUDFImpl
impl PartialEq for AliasedWindowUDFImpl
Source§impl WindowUDFImpl for AliasedWindowUDFImpl
impl WindowUDFImpl for AliasedWindowUDFImpl
Source§fn signature(&self) -> &Signature
fn signature(&self) -> &Signature
Returns the function’s
Signature for information about what input
types are accepted and the function’s Volatility.Source§fn expressions(
&self,
expr_args: ExpressionArgs<'_>,
) -> Vec<Arc<dyn PhysicalExpr>>
fn expressions( &self, expr_args: ExpressionArgs<'_>, ) -> Vec<Arc<dyn PhysicalExpr>>
Returns the expressions that are passed to the
PartitionEvaluator.Source§fn partition_evaluator(
&self,
partition_evaluator_args: PartitionEvaluatorArgs<'_>,
) -> Result<Box<dyn PartitionEvaluator>>
fn partition_evaluator( &self, partition_evaluator_args: PartitionEvaluatorArgs<'_>, ) -> Result<Box<dyn PartitionEvaluator>>
Invoke the function, returning the
PartitionEvaluator instanceSource§fn aliases(&self) -> &[String]
fn aliases(&self) -> &[String]
Returns any aliases (alternate names) for this function. Read more
Source§fn simplify(&self) -> Option<WindowFunctionSimplification>
fn simplify(&self) -> Option<WindowFunctionSimplification>
Optionally apply per-UDWF simplification / rewrite rules. Read more
Source§fn field(&self, field_args: WindowUDFFieldArgs<'_>) -> Result<FieldRef>
fn field(&self, field_args: WindowUDFFieldArgs<'_>) -> Result<FieldRef>
The [
FieldRef] of the final result of evaluating this window function. Read moreSource§fn sort_options(&self) -> Option<SortOptions>
fn sort_options(&self) -> Option<SortOptions>
Allows the window UDF to define a custom result ordering. Read more
Source§fn coerce_types(&self, arg_types: &[DataType]) -> Result<Vec<DataType>>
fn coerce_types(&self, arg_types: &[DataType]) -> Result<Vec<DataType>>
Coerce arguments of a function call to types that the function can evaluate. Read more
Source§fn reverse_expr(&self) -> ReversedUDWF
fn reverse_expr(&self) -> ReversedUDWF
Allows customizing the behavior of the user-defined window
function when it is evaluated in reverse order.
Source§fn documentation(&self) -> Option<&Documentation>
fn documentation(&self) -> Option<&Documentation>
Returns the documentation for this Window UDF. Read more
Source§fn limit_effect(&self, args: &[Arc<dyn PhysicalExpr>]) -> LimitEffect
fn limit_effect(&self, args: &[Arc<dyn PhysicalExpr>]) -> LimitEffect
If not causal, returns the effect this function will have on the window
impl Eq for AliasedWindowUDFImpl
impl StructuralPartialEq for AliasedWindowUDFImpl
Auto Trait Implementations§
impl Freeze for AliasedWindowUDFImpl
impl !RefUnwindSafe for AliasedWindowUDFImpl
impl Send for AliasedWindowUDFImpl
impl Sync for AliasedWindowUDFImpl
impl Unpin for AliasedWindowUDFImpl
impl !UnwindSafe for AliasedWindowUDFImpl
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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