AggregateFluentBaseTResultSetWindowFieldsTPartitionBy, TWindowFields Method (AggregateExpressionDefinitionTResult, TPartitionBy, SortDefinitionTResult, AggregateExpressionDefinitionISetWindowFieldsPartitionTResult, TWindowFields) |
Appends a $setWindowFields to the pipeline.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax public virtual IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(
AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy,
SortDefinition<TResult> sortBy,
AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output
)
Public Overridable 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>
override SetWindowFields :
partitionBy : AggregateExpressionDefinition<'TResult, 'TPartitionBy> *
sortBy : SortDefinition<'TResult> *
output : AggregateExpressionDefinition<ISetWindowFieldsPartition<'TResult>, 'TWindowFields> -> IAggregateFluent<BsonDocument>
Parameters
- partitionBy
- Type: MongoDB.DriverAggregateExpressionDefinitionTResult, TPartitionBy
The partitionBy definition. - sortBy
- Type: MongoDB.DriverSortDefinitionTResult
The sortBy 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.
Implements
IAggregateFluentTResultSetWindowFieldsTPartitionBy, TWindowFields(AggregateExpressionDefinitionTResult, TPartitionBy, SortDefinitionTResult, AggregateExpressionDefinitionISetWindowFieldsPartitionTResult, TWindowFields)See Also