Struct datafusion::physical_plan::expressions::Rank
source · pub struct Rank { /* private fields */ }
Expand description
Rank calculates the rank in the window function with order by
Implementations§
Trait Implementations§
source§impl BuiltInWindowFunctionExpr for Rank
impl BuiltInWindowFunctionExpr for Rank
source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Return a reference to Any that can be used for downcasting
source§fn field(&self) -> Result<Field, DataFusionError>
fn field(&self) -> Result<Field, DataFusionError>
the field of the final result of this aggregation.
source§fn expressions(&self) -> Vec<Arc<dyn PhysicalExpr + 'static>, Global> ⓘ
fn expressions(&self) -> Vec<Arc<dyn PhysicalExpr + 'static>, Global> ⓘ
expressions that are passed to the Accumulator.
Single-column aggregations such as
sum
return a single value, others (e.g. cov
) return many.source§fn name(&self) -> &str
fn name(&self) -> &str
Human readable name such as
"MIN(c2)"
or "RANK()"
. The default
implementation returns placeholder text.fn supports_bounded_execution(&self) -> bool
source§fn create_evaluator(
&self
) -> Result<Box<dyn PartitionEvaluator + 'static, Global>, DataFusionError>
fn create_evaluator( &self ) -> Result<Box<dyn PartitionEvaluator + 'static, Global>, DataFusionError>
Create built-in window evaluator with a batch
source§fn evaluate_args(
&self,
batch: &RecordBatch
) -> Result<Vec<Arc<dyn Array + 'static>, Global>, DataFusionError>
fn evaluate_args( &self, batch: &RecordBatch ) -> Result<Vec<Arc<dyn Array + 'static>, Global>, DataFusionError>
Evaluate window function arguments against the batch and return
an array ref. Typically, the resulting vector is a single element vector.
source§fn reverse_expr(&self) -> Option<Arc<dyn BuiltInWindowFunctionExpr + 'static>>
fn reverse_expr(&self) -> Option<Arc<dyn BuiltInWindowFunctionExpr + 'static>>
Construct Reverse Expression that produces the same result
on a reversed window. For example
lead(10)
–> lag(10)