Class 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.

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