PipelineStageDefinitionBuilderBucketTInput, TValue Method (AggregateExpressionDefinitionTInput, TValue, IEnumerableTValue, AggregateBucketOptionsTValue) |
Creates a $bucket stage.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax public static PipelineStageDefinition<TInput, AggregateBucketResult<TValue>> Bucket<TInput, TValue>(
AggregateExpressionDefinition<TInput, TValue> groupBy,
IEnumerable<TValue> boundaries,
AggregateBucketOptions<TValue> options = null
)
Public Shared Function Bucket(Of TInput, TValue) (
groupBy As AggregateExpressionDefinition(Of TInput, TValue),
boundaries As IEnumerable(Of TValue),
Optional options As AggregateBucketOptions(Of TValue) = Nothing
) As PipelineStageDefinition(Of TInput, AggregateBucketResult(Of TValue))
static member Bucket :
groupBy : AggregateExpressionDefinition<'TInput, 'TValue> *
boundaries : IEnumerable<'TValue> *
?options : AggregateBucketOptions<'TValue>
(* Defaults:
let _options = defaultArg options null
*)
-> PipelineStageDefinition<'TInput, AggregateBucketResult<'TValue>>
Parameters
- groupBy
- Type: MongoDB.DriverAggregateExpressionDefinitionTInput, TValue
The group by expression. - boundaries
- Type: System.Collections.GenericIEnumerableTValue
The boundaries. - options (Optional)
- Type: MongoDB.DriverAggregateBucketOptionsTValue
The options.
Type Parameters
- TInput
- The type of the input documents.
- TValue
- The type of the values.
Return Value
Type:
PipelineStageDefinitionTInput,
AggregateBucketResultTValueThe stage.
See Also