Struct datafusion::functions_window::row_number::RowNumber
source · pub struct RowNumber { /* private fields */ }
Expand description
row_number expression
Implementations§
Trait Implementations§
source§impl WindowUDFImpl for RowNumber
impl WindowUDFImpl for RowNumber
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 return_type(
&self,
_arg_types: &[DataType],
) -> Result<DataType, DataFusionError>
fn return_type( &self, _arg_types: &[DataType], ) -> Result<DataType, DataFusionError>
What
DataType
will be returned by this function, given the types of
the argumentssource§fn partition_evaluator(
&self,
) -> Result<Box<dyn PartitionEvaluator>, DataFusionError>
fn partition_evaluator( &self, ) -> Result<Box<dyn PartitionEvaluator>, DataFusionError>
Invoke the function, returning the
PartitionEvaluator
instancesource§fn nullable(&self) -> bool
fn nullable(&self) -> bool
Allows customizing nullable of column for this window UDF. Read more
source§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 aliases(&self) -> &[String]
fn aliases(&self) -> &[String]
Returns any aliases (alternate names) for this function. Read more
source§fn simplify(
&self,
) -> Option<Box<dyn Fn(WindowFunction, &dyn SimplifyInfo) -> Result<Expr, DataFusionError>>>
fn simplify( &self, ) -> Option<Box<dyn Fn(WindowFunction, &dyn SimplifyInfo) -> Result<Expr, DataFusionError>>>
Optionally apply per-UDWF simplification / rewrite rules. Read more
source§fn equals(&self, other: &dyn WindowUDFImpl) -> bool
fn equals(&self, other: &dyn WindowUDFImpl) -> bool
Return true if this window UDF is equal to the other. Read more
source§fn hash_value(&self) -> u64
fn hash_value(&self) -> u64
Returns a hash value for this window UDF. Read more
source§fn coerce_types(
&self,
_arg_types: &[DataType],
) -> Result<Vec<DataType>, DataFusionError>
fn coerce_types( &self, _arg_types: &[DataType], ) -> Result<Vec<DataType>, DataFusionError>
Coerce arguments of a function call to types that the function can evaluate. Read more
Auto Trait Implementations§
impl Freeze for RowNumber
impl RefUnwindSafe for RowNumber
impl Send for RowNumber
impl Sync for RowNumber
impl Unpin for RowNumber
impl UnwindSafe for RowNumber
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