Method SetWindowFields

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

SetWindowFields<TInput, TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition, TWindowFields>)

Create a $setWindowFields stage.

public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields> output)

Parameters

output AggregateExpressionDefinition<ISetWindowFieldsPartition, 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, 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, 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, AggregateExpressionDefinition<ISetWindowFieldsPartition, 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

The sortBy expression.

output AggregateExpressionDefinition<ISetWindowFieldsPartition, 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, TWindowFields>>)

Create a $setWindowFields stage.

public static PipelineStageDefinition<TInput, BsonDocument> SetWindowFields<TInput, TWindowFields>(Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>> output)

Parameters

output Expression<Func<ISetWindowFieldsPartition, 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, 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, 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, Expression<Func<ISetWindowFieldsPartition, 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

The sortBy expression.

output Expression<Func<ISetWindowFieldsPartition, 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.