Method Rank
Rank<TInput>(ISetWindowFieldsPartition<TInput>)
Returns the document position (known as the rank) relative to other documents in the $setWindowFields stage partition.
public static decimal Rank<TInput>(this ISetWindowFieldsPartition<TInput> partition)
Parameters
partition
ISetWindowFieldsPartition<TInput>The partition.
Returns
- decimal
The document position.
Type Parameters
TInput
The type of the input documents in the partition.