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:
precedinginputs before the current one up tofollowinginputs after it.currentis the position of the current input only (ties are not included). A negativeprecedingstarts the frame after the current input; a negativefollowingends 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
precedingbelow and at mostfollowingabove that of the current input.currentincludes 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