Struct datafusion_physical_expr::expressions::CumeDist
source · pub struct CumeDist { /* private fields */ }
Expand description
CumeDist calculates the cume_dist in the window function with order by
Trait Implementations§
source§impl BuiltInWindowFunctionExpr for CumeDist
impl BuiltInWindowFunctionExpr for CumeDist
source§fn expressions(&self) -> Vec<Arc<dyn PhysicalExpr>> ⓘ
fn expressions(&self) -> Vec<Arc<dyn PhysicalExpr>> ⓘ
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.source§fn create_evaluator(&self) -> Result<Box<dyn PartitionEvaluator>>
fn create_evaluator(&self) -> Result<Box<dyn PartitionEvaluator>>
Create built-in window evaluator with a batch
source§fn evaluate_args(&self, batch: &RecordBatch) -> Result<Vec<ArrayRef>>
fn evaluate_args(&self, batch: &RecordBatch) -> Result<Vec<ArrayRef>>
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>>
fn reverse_expr(&self) -> Option<Arc<dyn BuiltInWindowFunctionExpr>>
Construct Reverse Expression that produces the same result
on a reversed window. For example
lead(10)
–> lag(10)