Running

data class Running(val metric: String, val order: Sort, val within: List<String> = emptyList(), val frame: Int? = null, val function: RunningFunction = RunningFunction.SUM) : DerivedExpression.Window

metric accumulated along order over the groups that share this group's within keys: the function of every group up to and including this one, or of the last frame of them. Groups tied on order follow the remaining group keys ascending, in groupBy order. null when every value in the frame is null. SUM accepts only COUNT and SUM; AVG, a moving average with frame, accepts any numeric metric.

Constructors

Link copied to clipboard
constructor(metric: String, order: Sort, within: List<String> = emptyList(), frame: Int? = null, function: RunningFunction = RunningFunction.SUM)

Properties

Link copied to clipboard
val frame: Int?
Link copied to clipboard
Link copied to clipboard
open override val metric: String
Link copied to clipboard
val order: Sort

A group alias or a non-derived numeric metric alias, with its direction.

Link copied to clipboard