Method SetWindowFields
SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)
Appends a $setWindowFields to the pipeline.
IAggregateFluent<BsonDocument> SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)
Parameters
output
AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>The window fields definition.
Returns
- IAggregateFluent<BsonDocument>
The fluent aggregate interface.
Type Parameters
TWindowFields
The type of the added window fields.
SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)
Appends a $setWindowFields to the pipeline.
IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)
Parameters
partitionBy
AggregateExpressionDefinition<TResult, TPartitionBy>The partitionBy definition.
output
AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>The window fields definition.
Returns
- IAggregateFluent<BsonDocument>
The fluent aggregate interface.
Type Parameters
TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.
SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy>, SortDefinition<TResult>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)
Appends a $setWindowFields to the pipeline.
IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, SortDefinition<TResult> sortBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)
Parameters
partitionBy
AggregateExpressionDefinition<TResult, TPartitionBy>The partitionBy definition.
sortBy
SortDefinition<TResult>The sortBy definition.
output
AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>The window fields definition.
Returns
- IAggregateFluent<BsonDocument>
The fluent aggregate interface.
Type Parameters
TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.