Table of Contents

Method DenseRank

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

DenseRank<TInput>(ISetWindowFieldsPartition<TInput>)

Returns the document position (known as the rank) relative to other documents in the $setWindowFields stage partition.

public static decimal DenseRank<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.