DerivedExpressionDsl

Dedicated expression context for AggregationQueryDsl.derived: constant returns a DerivedExpression.Constant rather than the AggregationExpression.Constant built by AggregationQueryDsl.constant, so the two scopes must not share a receiver type.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun previous(metric: String, along: String, shift: Int = 1, period: AggregationDateUnit? = null): DerivedExpression

metric of the group shift buckets, or periods, earlier along the DATE_HISTOGRAM group along.

Link copied to clipboard
fun rank(metric: String, vararg within: String, direction: Sort.Direction = Sort.Direction.DESC): DerivedExpression

The dense rank of metric among the groups sharing this group's within keys.

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

metric accumulated along order within the groups sharing this group's within keys.

Link copied to clipboard
Link copied to clipboard
fun total(metric: String, vararg within: String): DerivedExpression

The sum of metric over the groups sharing this group's within keys.