# CumeDist

class CumeDist(scale: Int = 2) : WindowFunction<BigDecimal>

Represents an SQL function that Returns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/N to 1. scale represents decimal digits count in the fractional part of result.

## Constructors

CumeDist
Link copied to clipboard
constructor(scale: Int = 2)

## Functions

over
Link copied to clipboard
open override fun over(): WindowFunctionDefinition<BigDecimal>

Returns window function definition.

toQueryBuilder
Link copied to clipboard
open override fun toQueryBuilder(queryBuilder: QueryBuilder)

Appends the SQL representation of this function to the specified queryBuilder.