WindowFrame class

The inputs, relative to the current one, that a window function of Pipeline.addWindowFields is evaluated over.

Each bound is a number, current, unbounded or an Expression that evaluates to one of those. A bound that is not given is the current input (the server default).

Beta: window functions are a preview feature of the server; the Enterprise emulator rejects them.

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

Constructors

WindowFrame.documents({Object? preceding, Object? following})
A frame of inputs counted by position: preceding inputs before the current one up to following inputs after it. current is the position of the current input only (ties are not included). A negative preceding starts the frame after the current input; a negative following ends it before.
WindowFrame.range({Object? preceding, Object? following, Object? unit})
A frame of inputs by the value of the (single) sort key of the window: the inputs whose sort value is at most preceding below and at most following above that of the current input. current includes the inputs tied with the current one.

Properties

following → Object?
The end of the frame, or null for the server default.
final
hashCode → int
The hash code for this object.
no setterinherited
preceding → Object?
The start of the frame, or null for the server default.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unit → Object?
The unit of the offsets of a range frame, or null.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Constants

current → const String
The bound for the current input.
unbounded → const String
The bound for the first or the last input of the partition.