Class ReplaceRootOperation

java.lang.Object
org.springframework.data.mongodb.core.aggregation.ReplaceRootOperation
All Implemented Interfaces:
AggregationOperation, FieldsExposingAggregationOperation
Direct Known Subclasses:
ReplaceRootOperation.ReplaceRootDocumentOperation, ReplaceWithOperation

public class ReplaceRootOperation extends Object implements FieldsExposingAggregationOperation
Encapsulates the aggregation framework $replaceRoot-operation.
We recommend to use the static factory method Aggregation.replaceRoot(String) instead of creating instances of this class directly.
Since:
1.10
Author:
Mark Paluch, Christoph Strobl
See Also: