WindowFunction class

A function evaluated over a frame of inputs, for Pipeline.addWindowFields: a ranking function such as rank(), or an AggregateFunction with a frame (AggregateFunction.over).

Create it directly to call a window function this SDK has no helper for.

Beta: window functions are a preview feature of the server.

Preview, Enterprise only: the Pipelines API is experimental, may change in any release and needs a Firestore Enterprise edition database.

Constructors

WindowFunction(String name, [List<Object?> args = const <Object?>[]])
A call of the server window function name (snake case) with args, evaluated over the frame of the enclosing stage.

Properties

args → List<Expression>
The arguments of the call.
final
frame → WindowFrame?
The frame of this function, or null for the frame of the enclosing stage.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The server name of the function.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

as(String alias) → AliasedWindowFunction
Names the result of this function.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
over(WindowFrame frame) → WindowFunction
This function evaluated over frame instead of the frame of the enclosing stage.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited