Method SetWindowFields
SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)
Appends a $setWindowFields to the pipeline.
public virtual IAggregateFluent<BsonDocument> SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)
Parameters
output
AggregateExpression <ISetDefinition Window <TResult>, TWindowFields>Fields Partition The window fields definition.
Returns
- IAggregate
Fluent <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.
public virtual IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)
Parameters
partitionBy
AggregateExpression <TResult, TPartitionBy>Definition The partitionBy definition.
output
AggregateExpression <ISetDefinition Window <TResult>, TWindowFields>Fields Partition The window fields definition.
Returns
- IAggregate
Fluent <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.
public virtual IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, SortDefinition<TResult> sortBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)
Parameters
partitionBy
AggregateExpression <TResult, TPartitionBy>Definition The partitionBy definition.
sortBy
SortDefinition <TResult>The sortBy definition.
output
AggregateExpression <ISetDefinition Window <TResult>, TWindowFields>Fields Partition The window fields definition.
Returns
- IAggregate
Fluent <BsonDocument > The fluent aggregate interface.
Type Parameters
TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.