Uses of Class
org.springframework.data.mongodb.core.aggregation.ReplaceRootOperation
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of ReplaceRootOperation in org.springframework.data.mongodb.core.aggregation
Modifier and TypeClassDescriptionstatic class
Encapsulates the aggregation framework$replaceRoot
-operation to result in a composable replacement document.class
Encapsulates the aggregation framework$replaceRoot
-operation.Modifier and TypeMethodDescriptionstatic ReplaceRootOperation
Aggregation.replaceRoot
(String fieldName) Factory method to create a newReplaceRootOperation
for the field with the given name.static ReplaceRootOperation
Aggregation.replaceRoot
(AggregationExpression aggregationExpression) Factory method to create a newReplaceRootOperation
for the field with the givenAggregationExpression
.ReplaceRootOperation.ReplaceRootOperationBuilder.withDocument
(org.bson.Document document) Defines a root document replacement based on a composable document given document.ReplaceRootOperation.ReplaceRootOperationBuilder.withValueOf
(String fieldName) Defines a root document replacement based on a fieldName that resolves to a document.ReplaceRootOperation.ReplaceRootOperationBuilder.withValueOf
(AggregationExpression aggregationExpression) Defines a root document replacement based on aAggregationExpression
that resolves to a document.