WindowFunction
public class WindowFunction : AggregateBridgeWrapper, @unchecked Sendable[Public Preview] A function that is evaluated over a window of documents in an
addWindowFields stage.
Create a WindowFunction with a dedicated window function such as Rank(), or by calling
over(_:) on an AggregateFunction.
Warning
Window Functions SDK features are in preview until the backend feature launches. Look for the launch announcement at: https://docs.cloud.google.com/firestore/docs/release-notes
-
Creates an
AliasedWindowFunctionfrom this window function.Declaration
Swift
public func `as`(_ name: String) -> AliasedWindowFunctionParameters
nameThe name of the output field that will contain the result.
Return Value
An
AliasedWindowFunctionwith the given alias.