Class DensifyOperation
java.lang.Object
org.springframework.data.mongodb.core.aggregation.DensifyOperation
- All Implemented Interfaces:
AggregationOperation
Encapsulates the aggregation framework
$densify
-operation.- Since:
- 4.0
- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
DensifyOperation.Range
implementation holding lower and upper bound values.static class
static class
BaseDensifyOperation.Range
implementation.static interface
The actual time unit to apply to aDensifyOperation.Range
.static enum
Quick access to availableunits
.static interface
TheDensifyOperation.Range
specifies how the data is densified. -
Constructor Summary
ModifierConstructorDescriptionprotected
DensifyOperation
(Field field, List<?> partitionBy, DensifyOperation.Range range) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Obtain a builder to create theDensifyOperation
.org.bson.Document
toDocument
(AggregationOperationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.core.aggregation.AggregationOperation
getOperator, toPipelineStages
-
Constructor Details
-
DensifyOperation
-
-
Method Details
-
builder
Obtain a builder to create theDensifyOperation
.- Returns:
- new instance of
DensifyOperation.DensifyOperationBuilder
.
-
toDocument
Description copied from interface:AggregationOperation
- Specified by:
toDocument
in interfaceAggregationOperation
- Parameters:
context
- theAggregationOperationContext
to operate within. Must not be null.- Returns:
- the Document
-