Table of Contents

Class DensifyRange

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents a range for the $densify stage.

public abstract class DensifyRange
Inheritance
DensifyRange
Derived
Inherited Members

Methods

DateTime(DensifyBounds, int, DensifyDateTimeUnit)

Creates a DensifyRange with DateTime bounds.

public static DensifyRange DateTime(DensifyBounds bounds, int step, DensifyDateTimeUnit unit)

Parameters

bounds DensifyBounds

The bounds.

step int

The step.

unit DensifyDateTimeUnit

The unit.

Returns

DensifyRange

A DensifyRange with DateTime bounds.

DateTime(DateTime, DateTime, int, DensifyDateTimeUnit)

Creates a DensifyRange with DateTime bounds.

public static DensifyRange DateTime(DateTime lowerBound, DateTime upperBound, int step, DensifyDateTimeUnit unit)

Parameters

lowerBound DateTime

The lower bound.

upperBound DateTime

The upper bound.

step int

The step.

unit DensifyDateTimeUnit

The unit.

Returns

DensifyRange

A DensifyRange with DateTime bounds.

Numeric<TNumber>(DensifyBounds, TNumber)

Creates a DensifyRange with numeric bounds.

public static DensifyRange Numeric<TNumber>(DensifyBounds bounds, TNumber step)

Parameters

bounds DensifyBounds

The bounds.

step TNumber

The step.

Returns

DensifyRange

A DensifyRange with numeric bounds.

Type Parameters

TNumber

The numeric type.

Numeric<TNumber>(TNumber, TNumber, TNumber)

Creates a DensifyRange with numeric bounds.

public static DensifyRange Numeric<TNumber>(TNumber lowerBound, TNumber upperBound, TNumber step)

Parameters

lowerBound TNumber

The lower bound.

upperBound TNumber

The upper bound.

step TNumber

The step.

Returns

DensifyRange

A DensifyRange with numeric bounds.

Type Parameters

TNumber

The numeric type.

Render()

Renders the range as a BsonDocument.

public abstract BsonDocument Render()

Returns

BsonDocument

The rendered range.

ToString()

public override string ToString()

Returns

string