# FirstValue

class FirstValue<T>(val expr: ExpressionWithColumnType<T>) : WindowFunction<T>

Represents an SQL function that returns expr evaluated at the row that is the first row of the window frame.

## Constructors

FirstValue
Link copied to clipboard
constructor(expr: ExpressionWithColumnType<T>)

## Properties

expr
Link copied to clipboard
val expr: ExpressionWithColumnType<T>

Returns the expression to evaluate.

## Functions

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

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.