AggregateFunction class
A function that combines the values of many inputs into one, for use in
Pipeline.aggregate.
Create it directly to call an aggregate this SDK has no helper for yet.
Preview, Enterprise only: the Pipelines API is experimental, may change in any release and needs a Firestore Enterprise edition database.
Constructors
-
AggregateFunction(String name, [List<
Object?> args = const <Object?>[]]) -
Creates a call of the server aggregate
name(snake case) withargs.
Properties
-
args
→ List<
Expression> -
The arguments of the call.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The server name of the aggregate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
as(
String alias) → AliasedAggregate - Names the result of this aggregate.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
over(
WindowFrame frame) → WindowFunction -
This aggregate evaluated over
frame, relative to each input, instead of over the frame of the enclosingPipeline.addWindowFieldsstage. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited