Module spring.data.mongodb
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
Nested ClassesModifier and TypeClassDescriptionstatic classDensifyOperation.Rangeimplementation holding lower and upper bound values.static classstatic classBaseDensifyOperation.Rangeimplementation.static interfaceThe actual time unit to apply to aDensifyOperation.Range.static enumQuick access to availableunits.static interfaceTheDensifyOperation.Rangespecifies how the data is densified. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDensifyOperation(Field field, List<?> partitionBy, DensifyOperation.Range range) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Obtain a builder to create theDensifyOperation.org.bson.DocumenttoDocument(AggregationOperationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
toDocumentin interfaceAggregationOperation- Parameters:
context- theAggregationOperationContextto operate within. Must not be null.- Returns:
- the Document
-