Method DocumentNumber

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Linq

Assembly

MongoDB.Driver.dll

DocumentNumber(ISetWindowFieldsPartition)

Returns the position of a document (known as the document number) in the $setWindowFields stage partition.

public static decimal DocumentNumber<TInput>(this ISetWindowFieldsPartition<TInput> partition)

Parameters

partition ISetWindowFieldsPartition

The partition.

Returns

decimal

The document position.

Type Parameters

TInput

The type of the input documents in the partition.