Method Densify
Densify<TInput, TOutput>(PipelineDefinition<TInput, TOutput>, FieldDefinition<TOutput>, DensifyRange, IEnumerable<FieldDefinition<TOutput>>)
Appends a $densify stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Densify<TInput, TOutput>(this PipelineDefinition<TInput, TOutput> pipeline, FieldDefinition<TOutput> field, DensifyRange range, IEnumerable<FieldDefinition<TOutput>> partitionByFields = null)
Parameters
pipeline
PipelineDefinition<TInput, TOutput>The pipeline.
field
FieldDefinition<TOutput>The field.
range
DensifyRangeThe range.
partitionByFields
IEnumerable<FieldDefinition<TOutput>>The partition by fields.
Returns
- PipelineDefinition<TInput, TOutput>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.
Densify<TInput, TOutput>(PipelineDefinition<TInput, TOutput>, FieldDefinition<TOutput>, DensifyRange, params FieldDefinition<TOutput>[])
Appends a $densify stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Densify<TInput, TOutput>(this PipelineDefinition<TInput, TOutput> pipeline, FieldDefinition<TOutput> field, DensifyRange range, params FieldDefinition<TOutput>[] partitionByFields)
Parameters
pipeline
PipelineDefinition<TInput, TOutput>The pipeline.
field
FieldDefinition<TOutput>The field.
range
DensifyRangeThe range.
partitionByFields
FieldDefinition<TOutput>[]The partition by fields.
Returns
- PipelineDefinition<TInput, TOutput>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.
Densify<TInput, TOutput>(PipelineDefinition<TInput, TOutput>, Expression<Func<TOutput, object>>, DensifyRange, IEnumerable<Expression<Func<TOutput, object>>>)
Appends a $densify stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Densify<TInput, TOutput>(this PipelineDefinition<TInput, TOutput> pipeline, Expression<Func<TOutput, object>> field, DensifyRange range, IEnumerable<Expression<Func<TOutput, object>>> partitionByFields = null)
Parameters
pipeline
PipelineDefinition<TInput, TOutput>The pipeline.
field
Expression<Func<TOutput, object>>The field.
range
DensifyRangeThe range.
partitionByFields
IEnumerable<Expression<Func<TOutput, object>>>The partition by fields.
Returns
- PipelineDefinition<TInput, TOutput>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.
Densify<TInput, TOutput>(PipelineDefinition<TInput, TOutput>, Expression<Func<TOutput, object>>, DensifyRange, params Expression<Func<TOutput, object>>[])
Appends a $densify stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Densify<TInput, TOutput>(this PipelineDefinition<TInput, TOutput> pipeline, Expression<Func<TOutput, object>> field, DensifyRange range, params Expression<Func<TOutput, object>>[] partitionByFields)
Parameters
pipeline
PipelineDefinition<TInput, TOutput>The pipeline.
field
Expression<Func<TOutput, object>>The field.
range
DensifyRangeThe range.
partitionByFields
Expression<Func<TOutput, object>>[]The partition by fields.
Returns
- PipelineDefinition<TInput, TOutput>
A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.