WindowSpecificationExpression

data class WindowSpecificationExpression(val partitionBy: List<ScalarExpression<*>> = emptyList(), val orderBy: List<OrderByExpression> = emptyList(), val frameUnit: WindowFrameUnitType? = null, val frameStart: WindowFrameBoundExpression? = null, val frameEnd: WindowFrameBoundExpression? = null, val isLeafNode: Boolean = false, val extraProperties: Map<String, Any> = emptyMap()) : SqlExpression(source)

Window specification expression.

Since

3.6.0

Constructors

Link copied to clipboard
constructor(partitionBy: List<ScalarExpression<*>> = emptyList(), orderBy: List<OrderByExpression> = emptyList(), frameUnit: WindowFrameUnitType? = null, frameStart: WindowFrameBoundExpression? = null, frameEnd: WindowFrameBoundExpression? = null, isLeafNode: Boolean = false, extraProperties: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
open override val extraProperties: Map<String, Any>

Extra properties of this expression, maybe useful in SqlFormatter to generate some special SQLs.

Link copied to clipboard

end bound of the window frame.

Link copied to clipboard

start bound of the window frame.

Link copied to clipboard

frame unit indicates the type of relationship between the current row and frame rows.

Link copied to clipboard
open override val isLeafNode: Boolean = false

Check if this expression is a leaf node in expression trees.

Link copied to clipboard

order-by clause indicates how to sort rows in each partition.

Link copied to clipboard

partition-by clause indicates how to divide the query rows into groups.

Functions

Link copied to clipboard

Specify the order-by clause of this window using the given order-by expressions.

Link copied to clipboard

Specify the partition-by clause of this window using the given columns or expressions.

Link copied to clipboard

Specify the frame clause of this window using the given bound in range unit.

Link copied to clipboard

Specify the frame clause of this window using the given bounds (start & end) in rows unit.

Link copied to clipboard

Specify the frame clause of this window using the given bound in rows unit.

Link copied to clipboard

Specify the frame clause of this window using the given bounds (start & end) in rows unit.