Struct datafusion_physical_expr::expressions::NthValue
source · [−]pub struct NthValue { /* private fields */ }
Expand description
nth_value expression
Implementations
sourceimpl NthValue
impl NthValue
sourcepub fn first(
name: impl Into<String>,
expr: Arc<dyn PhysicalExpr>,
data_type: DataType
) -> Self
pub fn first(
name: impl Into<String>,
expr: Arc<dyn PhysicalExpr>,
data_type: DataType
) -> Self
Create a new FIRST_VALUE window aggregate function
Trait Implementations
sourceimpl BuiltInWindowFunctionExpr for NthValue
impl BuiltInWindowFunctionExpr for NthValue
sourcefn expressions(&self) -> Vec<Arc<dyn PhysicalExpr>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn expressions(&self) -> Vec<Arc<dyn PhysicalExpr>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
expressions that are passed to the Accumulator.
Single-column aggregations such as sum
return a single value, others (e.g. cov
) return many. Read more
sourcefn name(&self) -> &str
fn name(&self) -> &str
Human readable name such as "MIN(c2)"
or "RANK()"
. The default
implementation returns placeholder text. Read more
sourcefn create_evaluator(
&self,
batch: &RecordBatch
) -> Result<Box<dyn PartitionEvaluator>>
fn create_evaluator(
&self,
batch: &RecordBatch
) -> Result<Box<dyn PartitionEvaluator>>
Create built-in window evaluator with a batch
Auto Trait Implementations
impl !RefUnwindSafe for NthValue
impl Send for NthValue
impl Sync for NthValue
impl Unpin for NthValue
impl !UnwindSafe for NthValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more