Click or drag to resize

PipelineDefinitionBuilder Class

Extension methods for adding stages to a pipeline.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverPipelineDefinitionBuilder

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public static class PipelineDefinitionBuilder

The PipelineDefinitionBuilder type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendStageTInput, TIntermediate, TOutput
Appends a stage to the pipeline.
Public methodStatic memberAsTInput, TIntermediate, TOutput
Changes the output type of the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, IEnumerableTValue, AggregateBucketOptionsTValue)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, IEnumerableTValue, AggregateBucketOptionsTValue, ExpressionTranslationOptions)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, IEnumerableTValue, ProjectionDefinitionTIntermediate, TOutput, AggregateBucketOptionsTValue)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, IEnumerableTValue, ExpressionFuncIGroupingTValue, TIntermediate, TOutput, AggregateBucketOptionsTValue, ExpressionTranslationOptions)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, Int32, AggregateBucketAutoOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, Int32, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, Int32, ProjectionDefinitionTIntermediate, TOutput, AggregateBucketAutoOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, Int32, ExpressionFuncIGroupingAggregateBucketAutoResultIdTValue, TIntermediate, TOutput, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Appends a $bucketAuto stage to the pipeline (this overload can only be used with LINQ3).
Public methodStatic memberBucketAutoForLinq2TInput, TIntermediate, TValue, TOutput
Appends a $bucketAuto stage to the pipeline (this method can only be used with LINQ2).
Public methodStatic memberChangeStreamTInput, TIntermediate
Appends a $changeStream stage to the pipeline. 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, TIntermediate
Appends a $count stage to the pipeline.
Public methodStatic memberDensifyTInput, TOutput(PipelineDefinitionTInput, TOutput, FieldDefinitionTOutput, DensifyRange, FieldDefinitionTOutput)
Appends a $densify stage to the pipeline.
Public methodStatic memberDensifyTInput, TOutput(PipelineDefinitionTInput, TOutput, FieldDefinitionTOutput, DensifyRange, IEnumerableFieldDefinitionTOutput)
Appends a $densify stage to the pipeline.
Public methodStatic memberDensifyTInput, TOutput(PipelineDefinitionTInput, TOutput, ExpressionFuncTOutput, Object, DensifyRange, IEnumerableExpressionFuncTOutput, Object)
Appends a $densify stage to the pipeline.
Public methodStatic memberDensifyTInput, TOutput(PipelineDefinitionTInput, TOutput, ExpressionFuncTOutput, Object, DensifyRange, ExpressionFuncTOutput, Object)
Appends a $densify stage to the pipeline.
Public methodStatic memberDocumentsTDocument(PipelineDefinitionNoPipelineInput, NoPipelineInput, AggregateExpressionDefinitionNoPipelineInput, IEnumerableTDocument, IBsonSerializerTDocument)
Appends a $documents stage to the pipeline.
Public methodStatic memberDocumentsTDocument(PipelineDefinitionNoPipelineInput, NoPipelineInput, IEnumerableTDocument, IBsonSerializerTDocument)
Appends a $documents stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, AggregateFacetTIntermediate)
Appends a $facet stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, IEnumerableAggregateFacetTIntermediate)
Appends a $facet stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateFacetTIntermediate)
Appends a $facet stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, IEnumerableAggregateFacetTIntermediate, AggregateFacetOptionsTOutput)
Appends a $facet stage to the pipeline.
Public methodStatic memberForTInput
Used to start creating a pipeline for {TInput} documents.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, FieldDefinitionTFrom, BsonValue, FieldDefinitionTFrom, BsonValue, AggregateExpressionDefinitionTIntermediate, BsonValue, FieldDefinitionBsonDocument, IEnumerableBsonDocument, FieldDefinitionBsonDocument, Int32)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, FieldDefinitionTFrom, TConnectFrom, FieldDefinitionTFrom, TConnectTo, AggregateExpressionDefinitionTIntermediate, TStartWith, FieldDefinitionTOutput, TAs, AggregateGraphLookupOptionsTFrom, TFrom, TOutput)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, ExpressionFuncTFrom, TConnectFrom, ExpressionFuncTFrom, TConnectTo, ExpressionFuncTIntermediate, TStartWith, ExpressionFuncTOutput, TAs, AggregateGraphLookupOptionsTFrom, TFrom, TOutput, ExpressionTranslationOptions)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, FieldDefinitionTFrom, TConnectFrom, FieldDefinitionTFrom, TConnectTo, AggregateExpressionDefinitionTIntermediate, TStartWith, FieldDefinitionTOutput, TAs, FieldDefinitionTAsElement, Int32, AggregateGraphLookupOptionsTFrom, TAsElement, TOutput)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, ExpressionFuncTFrom, TConnectFrom, ExpressionFuncTFrom, TConnectTo, ExpressionFuncTIntermediate, TStartWith, ExpressionFuncTOutput, TAs, ExpressionFuncTAsElement, Int32, AggregateGraphLookupOptionsTFrom, TAsElement, TOutput, ExpressionTranslationOptions)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGroupTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, BsonDocument)
Appends a group stage to the pipeline.
Public methodStatic memberGroupTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, TOutput)
Appends a $group stage to the pipeline.
Public methodStatic memberGroupTInput, TIntermediate, TKey, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TKey, ExpressionFuncIGroupingTKey, TIntermediate, TOutput, ExpressionTranslationOptions)
Appends a group stage to the pipeline (this method can only be used with LINQ2).
Public methodStatic memberLimitTInput, TOutput
Appends a $limit stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, FieldDefinitionTIntermediate, FieldDefinitionTForeignDocument, FieldDefinitionTOutput, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a $lookup stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, ExpressionFuncTIntermediate, Object, ExpressionFuncTForeignDocument, Object, ExpressionFuncTOutput, Object, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a lookup stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, BsonDocument, PipelineDefinitionTForeignDocument, TAsElement, FieldDefinitionTOutput, TAs, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a $lookup stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, BsonDocument, PipelineDefinitionTForeignDocument, TAsElement, ExpressionFuncTOutput, TAs, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a $lookup stage to the pipeline.
Public methodStatic memberMatchTInput, TOutput(PipelineDefinitionTInput, TOutput, FilterDefinitionTOutput)
Appends a $match stage to the pipeline.
Public methodStatic memberMatchTInput, TOutput(PipelineDefinitionTInput, TOutput, ExpressionFuncTOutput, Boolean)
Appends a match stage to the pipeline.
Public methodStatic memberMergeTInput, TIntermediate, TOutput
Appends a $merge stage to the pipeline.
Public methodStatic memberOfTypeTInput, TIntermediate, TOutput
Appends a $match stage to the pipeline to select documents of a certain type.
Public methodStatic memberOutTInput, TOutput
Appends a $out stage to the pipeline.
Public methodStatic memberProjectTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, BsonDocument)
Appends a project stage to the pipeline.
Public methodStatic memberProjectTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, TOutput)
Appends a $project stage to the pipeline.
Public methodStatic memberProjectTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TOutput, ExpressionTranslationOptions)
Appends a project stage to the pipeline.
Public methodStatic memberReplaceRootTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TOutput)
Appends a $replaceRoot stage to the pipeline.
Public methodStatic memberReplaceRootTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TOutput, ExpressionTranslationOptions)
Appends a $replaceRoot stage to the pipeline.
Public methodStatic memberReplaceWithTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TOutput)
Appends a $replaceWith stage to the pipeline.
Public methodStatic memberReplaceWithTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TOutput, ExpressionTranslationOptions)
Appends a $replaceWith stage to the pipeline.
Public methodStatic memberSearchTInput, TOutput
Appends a $search stage to the pipeline.
Public methodStatic memberSearchMetaTInput, TOutput
Appends a $searchMeta stage to the pipeline.
Public methodStatic memberSetWindowFieldsTInput, TIntermediate, TWindowFields(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionISetWindowFieldsPartitionTIntermediate, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TIntermediate, TPartitionBy, TWindowFields(PipelineDefinitionTInput, TIntermediate, ExpressionFuncISetWindowFieldsPartitionTIntermediate, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TIntermediate, TPartitionBy, TWindowFields(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TPartitionBy, AggregateExpressionDefinitionISetWindowFieldsPartitionTIntermediate, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TIntermediate, TPartitionBy, TWindowFields(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TPartitionBy, ExpressionFuncISetWindowFieldsPartitionTIntermediate, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TIntermediate, TPartitionBy, TWindowFields(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TPartitionBy, SortDefinitionTIntermediate, AggregateExpressionDefinitionISetWindowFieldsPartitionTIntermediate, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFieldsTInput, TIntermediate, TPartitionBy, TWindowFields(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TPartitionBy, SortDefinitionTIntermediate, ExpressionFuncISetWindowFieldsPartitionTIntermediate, TWindowFields)
Create a $setWindowFields stage.
Public methodStatic memberSkipTInput, TOutput
Appends a $skip stage to the pipeline.
Public methodStatic memberSortTInput, TOutput
Appends a $sort stage to the pipeline.
Public methodStatic memberSortByCountTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue)
Appends a $sortByCount stage to the pipeline.
Public methodStatic memberSortByCountTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, ExpressionTranslationOptions)
Appends a sortByCount stage to the pipeline.
Public methodStatic memberUnionWithTInput, TWith, TOutput
Appends a $unionWith stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, FieldDefinitionTIntermediate, AggregateUnwindOptionsBsonDocument)
Appends an unwind stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, Object, AggregateUnwindOptionsBsonDocument)
Appends an unwind stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, FieldDefinitionTIntermediate, AggregateUnwindOptionsTOutput)
Appends an $unwind stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, Object, AggregateUnwindOptionsTOutput)
Appends an unwind stage to the pipeline.
Top
See Also