Method SetWindowFields
SetWindowFields<TResult, TWindowFields>(IAggregateFluent<TResult>, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>)
Appends a $setWindowFields to the pipeline.
public static IAggregateFluent<BsonDocument> SetWindowFields<TResult, TWindowFields>(this IAggregateFluent<TResult> aggregate, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>> output)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
outputExpression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>The window fields expression.
Returns
- IAggregateFluent<BsonDocument>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.
TWindowFieldsThe type of the added window fields.
SetWindowFields<TResult, TPartitionBy, TWindowFields>(IAggregateFluent<TResult>, Expression<Func<TResult, TPartitionBy>>, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>)
Appends a $setWindowFields to the pipeline.
public static IAggregateFluent<BsonDocument> SetWindowFields<TResult, TPartitionBy, TWindowFields>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, TPartitionBy>> partitionBy, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>> output)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
partitionByExpression<Func<TResult, TPartitionBy>>The partitionBy expression.
outputExpression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>The window fields expression.
Returns
- IAggregateFluent<BsonDocument>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.
TPartitionByThe type of the value to partition by.
TWindowFieldsThe type of the added window fields.
SetWindowFields<TResult, TPartitionBy, TWindowFields>(IAggregateFluent<TResult>, Expression<Func<TResult, TPartitionBy>>, SortDefinition<TResult>, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>)
Appends a $setWindowFields to the pipeline.
public static IAggregateFluent<BsonDocument> SetWindowFields<TResult, TPartitionBy, TWindowFields>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, TPartitionBy>> partitionBy, SortDefinition<TResult> sortBy, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>> output)
Parameters
aggregateIAggregateFluent<TResult>The aggregate.
partitionByExpression<Func<TResult, TPartitionBy>>The partitionBy expression.
sortBySortDefinition<TResult>The sortBy expression.
outputExpression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>The window fields expression.
Returns
- IAggregateFluent<BsonDocument>
The fluent aggregate interface.
Type Parameters
TResultThe type of the result.
TPartitionByThe type of the value to partition by.
TWindowFieldsThe type of the added window fields.