Method SetWindowFields
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
SetWindowFields(AggregateExpressionDefinition<ISetWindowFieldsPartition, TWindowFields>)
Appends a $setWindowFields to the pipeline.
IAggregateFluent<BsonDocument> SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)
Parameters
output
AggregateExpressionDefinition<ISetWindowFieldsPartition, 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, 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, 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, AggregateExpressionDefinition<ISetWindowFieldsPartition, 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
The sortBy definition.
output
AggregateExpressionDefinition<ISetWindowFieldsPartition, 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.