Method Densify
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Densify(FieldDefinition, DensifyRange, IEnumerable<FieldDefinition>)
Creates a $densify stage.
public static PipelineStageDefinition<TInput, TInput> Densify<TInput>(FieldDefinition<TInput> field, DensifyRange range, IEnumerable<FieldDefinition<TInput>> partitionByFields = null)Parameters
field FieldDefinition
The field.
range DensifyRange
The range.
partitionByFields IEnumerable<FieldDefinition>
The partition by fields.
Returns
PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.
Densify(FieldDefinition, DensifyRange, params FieldDefinition[])
Creates a $densify stage.
public static PipelineStageDefinition<TInput, TInput> Densify<TInput>(FieldDefinition<TInput> field, DensifyRange range, params FieldDefinition<TInput>[] partitionByFields)Parameters
field FieldDefinition
The field.
range DensifyRange
The range.
partitionByFields FieldDefinition[]
The partition by fields.
Returns
PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.
Densify(Expression<Func<TInput, object>>, DensifyRange, IEnumerable<Expression<Func<TInput, object>>>)
Creates a $densify stage.
public static PipelineStageDefinition<TInput, TInput> Densify<TInput>(Expression<Func<TInput, object>> field, DensifyRange range, IEnumerable<Expression<Func<TInput, object>>> partitionByFields = null)Parameters
field Expression<Func<TInput, object>>
The field.
range DensifyRange
The range.
partitionByFields IEnumerable<Expression<Func<TInput, object>>>
The partition by fields.
Returns
PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.
Densify(Expression<Func<TInput, object>>, DensifyRange, params Expression<Func<TInput, object>>[])
Creates a $densify stage.
public static PipelineStageDefinition<TInput, TInput> Densify<TInput>(Expression<Func<TInput, object>> field, DensifyRange range, params Expression<Func<TInput, object>>[] partitionByFields)Parameters
field Expression<Func<TInput, object>>
The field.
range DensifyRange
The range.
partitionByFields Expression<Func<TInput, object>>[]
The partition by fields.
Returns
PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.