Skip to main content

Class: WindowSpec

Defined in: lang-sql/src/ast/window.ts:30

Window specification for a window function or OVER clause.

Implements​

Constructors​

Constructor​

new WindowSpec(mode?, start?, end?, exclude?): WindowSpec

Defined in: lang-sql/src/ast/window.ts:40

Parameters​

ParameterTypeDefault valueDescription
mode?stringundefined-
start?ASTNodeundefinedFrame start boundary expression.
end?ASTNodeundefinedFrame end boundary expression; undefined for a single-sided frame.
exclude?FrameExclusionFrameExclusion.NO_OTHERSWhich rows are excluded from the frame.

Returns​

WindowSpec

Properties​

columns​

columns: ASTNode[]

Defined in: lang-sql/src/ast/window.ts:38

PARTITION BY expressions.


end?​

optional end?: ASTNode

Defined in: lang-sql/src/ast/window.ts:45

Frame end boundary expression; undefined for a single-sided frame.


exclude​

exclude: FrameExclusion = FrameExclusion.NO_OTHERS

Defined in: lang-sql/src/ast/window.ts:47

Which rows are excluded from the frame.


mode​

mode: FrameMode = FrameMode.ROWS

Defined in: lang-sql/src/ast/window.ts:32

Frame mode; defaults to ROWS.


order​

order: OrderByItem[]

Defined in: lang-sql/src/ast/window.ts:36

ORDER BY expressions within the window.


parent​

parent: string

Defined in: lang-sql/src/ast/window.ts:34

Name of the window this spec inherits from; undefined if standalone.


start?​

optional start?: ASTNode

Defined in: lang-sql/src/ast/window.ts:43

Frame start boundary expression.

Methods​

accept()​

accept<Ret, Arg>(visitor, arg?): Ret

Defined in: lang-sql/src/ast/window.ts:52

Dispatches this node to the matching method on visitor.

Type Parameters​

Type Parameter
Ret
Arg

Parameters​

ParameterType
visitorSQLVisitor<Ret, Arg>
arg?Arg

Returns​

Ret

Implementation of​

ASTNode.accept