Click or drag to resize

PipelineStageDefinitionBuilder Class

Methods for building pipeline stages.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverPipelineStageDefinitionBuilder

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public static class PipelineStageDefinitionBuilder

The PipelineStageDefinitionBuilder type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBucketTInput, TValue(AggregateExpressionDefinitionTInput, TValue, IEnumerableTValue, AggregateBucketOptionsTValue)
Creates a $bucket stage.
Public methodStatic memberBucketTInput, TValue(ExpressionFuncTInput, TValue, IEnumerableTValue, AggregateBucketOptionsTValue, ExpressionTranslationOptions)
Creates a $bucket stage.
Public methodStatic memberBucketTInput, TValue, TOutput(AggregateExpressionDefinitionTInput, TValue, IEnumerableTValue, ProjectionDefinitionTInput, TOutput, AggregateBucketOptionsTValue)
Creates a $bucket stage.
Public methodStatic memberBucketTInput, TValue, TOutput(ExpressionFuncTInput, TValue, IEnumerableTValue, ExpressionFuncIGroupingTValue, TInput, TOutput, AggregateBucketOptionsTValue, ExpressionTranslationOptions)
Creates a $bucket stage.
Public methodStatic memberBucketAutoTInput, TValue(AggregateExpressionDefinitionTInput, TValue, Int32, AggregateBucketAutoOptions)
Creates a $bucketAuto stage.
Public methodStatic memberBucketAutoTInput, TValue(ExpressionFuncTInput, TValue, Int32, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Creates a $bucketAuto stage.
Public methodStatic memberBucketAutoTInput, TValue, TOutput(AggregateExpressionDefinitionTInput, TValue, Int32, ProjectionDefinitionTInput, TOutput, AggregateBucketAutoOptions)
Creates a $bucketAuto stage.
Public methodStatic memberBucketAutoTInput, TValue, TOutput(ExpressionFuncTInput, TValue, Int32, ExpressionFuncIGroupingTValue, TInput, TOutput, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Creates a $bucketAuto stage.
Public methodStatic memberChangeStreamTInput
Creates a $changeStream stage. Normally you would prefer to use the Watch method of IMongoCollectionTDocument. Only use this method if subsequent stages project away the resume token (the _id) or you don't want the resulting cursor to automatically resume.
Public methodStatic memberCountTInput
Creates a $count stage.
Public methodStatic memberDensifyTInput(ExpressionFuncTInput, Object, DensifyRange, IEnumerableExpressionFuncTInput, Object)
Creates a $densify stage.
Public methodStatic memberDensifyTInput(ExpressionFuncTInput, Object, DensifyRange, ExpressionFuncTInput, Object)
Creates a $densify stage.
Public methodStatic memberDensifyTInput(FieldDefinitionTInput, DensifyRange, FieldDefinitionTInput)
Creates a $densify stage.
Public methodStatic memberDensifyTInput(FieldDefinitionTInput, DensifyRange, IEnumerableFieldDefinitionTInput)
Creates a $densify stage.
Public methodStatic memberFacetTInput(AggregateFacetTInput)
Creates a $facet stage.
Public methodStatic memberFacetTInput(IEnumerableAggregateFacetTInput)
Creates a $facet stage.
Public methodStatic memberFacetTInput, TOutput(AggregateFacetTInput)
Creates a $facet stage.
Public methodStatic memberFacetTInput, TOutput(IEnumerableAggregateFacetTInput, AggregateFacetOptionsTOutput)
Creates a $facet stage.
Public methodStatic memberGraphLookupTInput, TFrom(IMongoCollectionTFrom, FieldDefinitionTFrom, BsonValue, FieldDefinitionTFrom, BsonValue, AggregateExpressionDefinitionTInput, BsonValue, FieldDefinitionBsonDocument, IEnumerableBsonDocument, FieldDefinitionBsonDocument, Int32)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookupTInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput(IMongoCollectionTFrom, FieldDefinitionTFrom, TConnectFrom, FieldDefinitionTFrom, TConnectTo, AggregateExpressionDefinitionTInput, TStartWith, FieldDefinitionTOutput, TAs, AggregateGraphLookupOptionsTFrom, TFrom, TOutput)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookupTInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput(IMongoCollectionTFrom, ExpressionFuncTFrom, TConnectFrom, ExpressionFuncTFrom, TConnectTo, ExpressionFuncTInput, TStartWith, ExpressionFuncTOutput, TAs, AggregateGraphLookupOptionsTFrom, TFrom, TOutput, ExpressionTranslationOptions)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookupTInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput(IMongoCollectionTFrom, FieldDefinitionTFrom, TConnectFrom, FieldDefinitionTFrom, TConnectTo, AggregateExpressionDefinitionTInput, TStartWith, FieldDefinitionTOutput, TAs, FieldDefinitionTAsElement, Int32, AggregateGraphLookupOptionsTFrom, TAsElement, TOutput)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookupTInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput(IMongoCollectionTFrom, ExpressionFuncTFrom, TConnectFrom, ExpressionFuncTFrom, TConnectTo, ExpressionFuncTInput, TStartWith, ExpressionFuncTOutput, TAs, ExpressionFuncTAsElement, Int32, AggregateGraphLookupOptionsTFrom, TAsElement, TOutput, ExpressionTranslationOptions)
Creates a $graphLookup stage.
Public methodStatic memberGroupTInput(ProjectionDefinitionTInput, BsonDocument)
Creates a $group stage.
Public methodStatic memberGroupTInput, TOutput(ProjectionDefinitionTInput, TOutput)
Creates a $group stage.
Public methodStatic memberGroupTInput, TValue, TOutput(ExpressionFuncTInput, TValue, ExpressionFuncIGroupingTValue, TInput, TOutput, ExpressionTranslationOptions)
Creates a $group stage (this method can only be used with LINQ2).
Public methodStatic memberGroupForLinq3TInput, TValue, TOutput
Creates a $group stage (this method can only be used with LINQ3).
Public methodStatic memberLimitTInput
Creates a $limit stage.
Public methodStatic memberLookupTInput, TForeignDocument, TOutput(IMongoCollectionTForeignDocument, FieldDefinitionTInput, FieldDefinitionTForeignDocument, FieldDefinitionTOutput, AggregateLookupOptionsTForeignDocument, TOutput)
Creates a $lookup stage.
Public methodStatic memberLookupTInput, TForeignDocument, TOutput(IMongoCollectionTForeignDocument, ExpressionFuncTInput, Object, ExpressionFuncTForeignDocument, Object, ExpressionFuncTOutput, Object, AggregateLookupOptionsTForeignDocument, TOutput)
Creates a $lookup stage.
Public methodStatic memberLookupTInput, TForeignDocument, TAsElement, TAs, TOutput(IMongoCollectionTForeignDocument, BsonDocument, PipelineDefinitionTForeignDocument, TAsElement, FieldDefinitionTOutput, TAs, AggregateLookupOptionsTForeignDocument, TOutput)
Creates a $lookup stage.
Public methodStatic memberLookupTInput, TForeignDocument, TAsElement, TAs, TOutput(IMongoCollectionTForeignDocument, BsonDocument, PipelineDefinitionTForeignDocument, TAsElement, ExpressionFuncTOutput, TAs, AggregateLookupOptionsTForeignDocument, TOutput)
Creates a $lookup stage.
Public methodStatic memberMatchTInput(ExpressionFuncTInput, Boolean)
Creates a $match stage.
Public methodStatic memberMatchTInput(FilterDefinitionTInput)
Creates a $match stage.
Public methodStatic memberMergeTInput, TOutput
Creates a $merge stage.
Public methodStatic memberOfTypeTInput, TOutput
Create a $match stage that select documents of a sub type.
Public methodStatic memberOutTInput
Creates a $out stage.
Public methodStatic memberProjectTInput(ProjectionDefinitionTInput, BsonDocument)
Creates a $project stage.
Public methodStatic memberProjectTInput, TOutput(ProjectionDefinitionTInput, TOutput)
Creates a $project stage.
Public methodStatic memberProjectTInput, TOutput(ExpressionFuncTInput, TOutput, ExpressionTranslationOptions)
Creates a $project stage.
Public methodStatic memberReplaceRootTInput, TOutput(AggregateExpressionDefinitionTInput, TOutput)
Creates a $replaceRoot stage.
Public methodStatic memberReplaceRootTInput, TOutput(ExpressionFuncTInput, TOutput, ExpressionTranslationOptions)
Creates a $replaceRoot stage.
Public methodStatic memberReplaceWithTInput, TOutput(AggregateExpressionDefinitionTInput, TOutput)
Creates a $replaceWith stage.
Public methodStatic memberReplaceWithTInput, TOutput(ExpressionFuncTInput, TOutput, ExpressionTranslationOptions)
Creates a $replaceWith stage.
Public methodStatic memberSetWindowFieldsTInput, TWindowFields(AggregateExpressionDefinitionISetWindowFieldsPartitionTInput, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TWindowFields(ExpressionFuncISetWindowFieldsPartitionTInput, TWindowFields, ExpressionTranslationOptions)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TPartitionBy, TWindowFields(AggregateExpressionDefinitionTInput, TPartitionBy, AggregateExpressionDefinitionISetWindowFieldsPartitionTInput, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TPartitionBy, TWindowFields(AggregateExpressionDefinitionTInput, TPartitionBy, SortDefinitionTInput, AggregateExpressionDefinitionISetWindowFieldsPartitionTInput, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TPartitionBy, TWindowFields(ExpressionFuncTInput, TPartitionBy, ExpressionFuncISetWindowFieldsPartitionTInput, TWindowFields, ExpressionTranslationOptions)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TPartitionBy, TWindowFields(ExpressionFuncTInput, TPartitionBy, SortDefinitionTInput, ExpressionFuncISetWindowFieldsPartitionTInput, TWindowFields, ExpressionTranslationOptions)
Create a $setWindowFields stage.
Public methodStatic memberSkipTInput
Creates a $skip stage.
Public methodStatic memberSortTInput
Creates a $sort stage.
Public methodStatic memberSortByCountTInput, TValue(AggregateExpressionDefinitionTInput, TValue)
Creates a $sortByCount stage.
Public methodStatic memberSortByCountTInput, TValue(ExpressionFuncTInput, TValue, ExpressionTranslationOptions)
Creates a $sortByCount stage.
Public methodStatic memberUnionWithTInput, TWith
Creates a $unionWith stage.
Public methodStatic memberUnwindTInput(ExpressionFuncTInput, Object, AggregateUnwindOptionsBsonDocument)
Creates an $unwind stage.
Public methodStatic memberUnwindTInput(FieldDefinitionTInput, AggregateUnwindOptionsBsonDocument)
Creates an $unwind stage.
Public methodStatic memberUnwindTInput, TOutput(ExpressionFuncTInput, Object, AggregateUnwindOptionsTOutput)
Creates an $unwind stage.
Public methodStatic memberUnwindTInput, TOutput(FieldDefinitionTInput, AggregateUnwindOptionsTOutput)
Creates an $unwind stage.
Top
See Also