Table of Contents

Method Densify

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Densify<TInput>(FieldDefinition<TInput>, DensifyRange, IEnumerable<FieldDefinition<TInput>>)

Creates a $densify stage.

public static PipelineStageDefinition<TInput, TInput> Densify<TInput>(FieldDefinition<TInput> field, DensifyRange range, IEnumerable<FieldDefinition<TInput>> partitionByFields = null)

Parameters

field FieldDefinition<TInput>

The field.

range DensifyRange

The range.

partitionByFields IEnumerable<FieldDefinition<TInput>>

The partition by fields.

Returns

PipelineStageDefinition<TInput, TInput>

The stage.

Type Parameters

TInput

The type of the input documents.

Densify<TInput>(FieldDefinition<TInput>, DensifyRange, params FieldDefinition<TInput>[])

Creates a $densify stage.

public static PipelineStageDefinition<TInput, TInput> Densify<TInput>(FieldDefinition<TInput> field, DensifyRange range, params FieldDefinition<TInput>[] partitionByFields)

Parameters

field FieldDefinition<TInput>

The field.

range DensifyRange

The range.

partitionByFields FieldDefinition<TInput>[]

The partition by fields.

Returns

PipelineStageDefinition<TInput, TInput>

The stage.

Type Parameters

TInput

The type of the input documents.

Densify<TInput>(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<TInput>(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.