Class ProjectionOperation

java.lang.Object
org.springframework.data.mongodb.core.aggregation.ProjectionOperation
All Implemented Interfaces:
AggregationOperation, FieldsExposingAggregationOperation

public class ProjectionOperation extends Object implements FieldsExposingAggregationOperation
Encapsulates the aggregation framework $project-operation.

Projection of field to be used in an Aggregation. A projection is similar to a Field inclusion/exclusion but more powerful. It can generate new fields, change values of given field etc.

We recommend to use the static factory method Aggregation.project(Fields) instead of creating instances of this class directly.

Since:
1.3
Author:
Tobias Trelle, Thomas Darimont, Oliver Gierke, Christoph Strobl, Mark Paluch
See Also: