IAggregateFluent<TResult>.SetWindowFields<TPartitionBy, TWindowFields> Method (AggregateExpressionDefinition<TResult, TPartitionBy>, SortDefinition<TResult>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>) |
Appends a $setWindowFields to the pipeline.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
SyntaxIAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(
AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy,
SortDefinition<TResult> sortBy,
AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output
)
Function SetWindowFields(Of TPartitionBy, TWindowFields) (
partitionBy As AggregateExpressionDefinition(Of TResult, TPartitionBy),
sortBy As SortDefinition(Of TResult),
output As AggregateExpressionDefinition(Of ISetWindowFieldsPartition(Of TResult), TWindowFields)
) As IAggregateFluent(Of BsonDocument)
abstract SetWindowFields :
partitionBy : AggregateExpressionDefinition<'TResult, 'TPartitionBy> *
sortBy : SortDefinition<'TResult> *
output : AggregateExpressionDefinition<ISetWindowFieldsPartition<'TResult>, 'TWindowFields> -> IAggregateFluent<BsonDocument>
Parameters
- partitionBy
- Type: MongoDB.Driver.AggregateExpressionDefinition<TResult, TPartitionBy>
The partitionBy definition. - sortBy
- Type: MongoDB.Driver.SortDefinition<TResult>
The sortBy definition. - output
- Type: MongoDB.Driver.AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>
The window fields definition.
Type Parameters
- TPartitionBy
- The type of the value to partition by.
- TWindowFields
- The type of the added window fields.
Return Value
Type:
IAggregateFluent<BsonDocument>The fluent aggregate interface.
See Also