pub enum WindowFunction {
AggregateFunction(AggregateFunction),
BuiltInWindowFunction(BuiltInWindowFunction),
AggregateUDF(Arc<AggregateUDF>),
WindowUDF(Arc<WindowUDF>),
}
Expand description
WindowFunction
Variants§
AggregateFunction(AggregateFunction)
A built in aggregate function that leverages an aggregate function
BuiltInWindowFunction(BuiltInWindowFunction)
A a built-in window function
AggregateUDF(Arc<AggregateUDF>)
A user defined aggregate function
WindowUDF(Arc<WindowUDF>)
A user defined aggregate function
Implementations§
source§impl WindowFunction
impl WindowFunction
sourcepub fn return_type(&self, input_expr_types: &[DataType]) -> Result<DataType>
pub fn return_type(&self, input_expr_types: &[DataType]) -> Result<DataType>
Returns the datatype of the window function
Trait Implementations§
source§impl Clone for WindowFunction
impl Clone for WindowFunction
source§fn clone(&self) -> WindowFunction
fn clone(&self) -> WindowFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowFunction
impl Debug for WindowFunction
source§impl Display for WindowFunction
impl Display for WindowFunction
source§impl Hash for WindowFunction
impl Hash for WindowFunction
source§impl PartialEq<WindowFunction> for WindowFunction
impl PartialEq<WindowFunction> for WindowFunction
source§fn eq(&self, other: &WindowFunction) -> bool
fn eq(&self, other: &WindowFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WindowFunction
impl StructuralEq for WindowFunction
impl StructuralPartialEq for WindowFunction
Auto Trait Implementations§
impl !RefUnwindSafe for WindowFunction
impl Send for WindowFunction
impl Sync for WindowFunction
impl Unpin for WindowFunction
impl !UnwindSafe for WindowFunction
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.