Method SetWindowFields
SetWindowFields<TInput, TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>)
Create a $setWindowFields stage.
public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields> output)
Parameters
output
AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>The window fields expression.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInput
The type of the input documents.
TWindowFields
The type of the added window fields.
SetWindowFields<TInput, TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TInput, TPartitionBy>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>)
Create a $setWindowFields stage.
public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TInput, TPartitionBy> partitionBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields> output)
Parameters
partitionBy
AggregateExpressionDefinition<TInput, TPartitionBy>The partitionBy expression.
output
AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>The window fields expression.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInput
The type of the input documents.
TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.
SetWindowFields<TInput, TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TInput, TPartitionBy>, SortDefinition<TInput>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>)
Create a $setWindowFields stage.
public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TInput, TPartitionBy> partitionBy, SortDefinition<TInput> sortBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields> output)
Parameters
partitionBy
AggregateExpressionDefinition<TInput, TPartitionBy>The partitionBy expression.
sortBy
SortDefinition<TInput>The sortBy expression.
output
AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>The window fields expression.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInput
The type of the input documents.
TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.
SetWindowFields<TInput, TWindowFields>(Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>)
Create a $setWindowFields stage.
public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TWindowFields>(Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>> output)
Parameters
output
Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>The window fields expression.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInput
The type of the input documents.
TWindowFields
The type of the added window fields.
SetWindowFields<TInput, TPartitionBy, TWindowFields>(Expression<Func<TInput, TPartitionBy>>, Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>)
Create a $setWindowFields stage.
public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TPartitionBy, TWindowFields>(Expression<Func<TInput, TPartitionBy>> partitionBy, Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>> output)
Parameters
partitionBy
Expression<Func<TInput, TPartitionBy>>The partitionBy expression.
output
Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>The window fields expression.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInput
The type of the input documents.
TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.
SetWindowFields<TInput, TPartitionBy, TWindowFields>(Expression<Func<TInput, TPartitionBy>>, SortDefinition<TInput>, Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>)
Create a $setWindowFields stage.
public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TPartitionBy, TWindowFields>(Expression<Func<TInput, TPartitionBy>> partitionBy, SortDefinition<TInput> sortBy, Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>> output)
Parameters
partitionBy
Expression<Func<TInput, TPartitionBy>>The partitionBy expression.
sortBy
SortDefinition<TInput>The sortBy expression.
output
Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>The window fields expression.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInput
The type of the input documents.
TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.