Class DensifyRange
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
DensifyBoundsThe bounds.
step
intThe step.
unit
DensifyDateTimeUnitThe 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
DateTimeThe lower bound.
upperBound
DateTimeThe upper bound.
step
intThe step.
unit
DensifyDateTimeUnitThe 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
DensifyBoundsThe bounds.
step
TNumberThe 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
TNumberThe lower bound.
upperBound
TNumberThe upper bound.
step
TNumberThe 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()