IAggregateFluentTResultSetWindowFieldsTPartitionBy, TWindowFields Method (AggregateExpressionDefinitionTResult, TPartitionBy, AggregateExpressionDefinitionISetWindowFieldsPartitionTResult, TWindowFields) |
Appends a $setWindowFields to the pipeline.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(
AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy,
AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output
)
Function SetWindowFields(Of TPartitionBy, TWindowFields) (
partitionBy As AggregateExpressionDefinition(Of TResult, TPartitionBy),
output As AggregateExpressionDefinition(Of ISetWindowFieldsPartition(Of TResult), TWindowFields)
) As IAggregateFluent(Of BsonDocument)
abstract SetWindowFields :
partitionBy : AggregateExpressionDefinition<'TResult, 'TPartitionBy> *
output : AggregateExpressionDefinition<ISetWindowFieldsPartition<'TResult>, 'TWindowFields> -> IAggregateFluent<BsonDocument>
Parameters
- partitionBy
- Type: MongoDB.DriverAggregateExpressionDefinitionTResult, TPartitionBy
The partitionBy definition. - output
- Type: MongoDB.DriverAggregateExpressionDefinitionISetWindowFieldsPartitionTResult, 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:
IAggregateFluentBsonDocumentThe fluent aggregate interface.
See Also