Package org.mongojack
Class Aggregation<T>
- java.lang.Object
-
- org.mongojack.Aggregation<T>
-
- Type Parameters:
T
- The type of results to be produced by the aggregation results.
@Deprecated public class Aggregation<T> extends Object
Deprecated.Use com.mongodb.client.model.AggregatesA Generic Aggregation object that allows the aggregation operations, and the return type of the AggregationResult to be specified.The Pipeline is a List<Stage>, and Stage is a Bson which makes it compatible with the methods in the JacksonMongoCollection that accept Bson-list aggregate pipeline objects, and makes those methods interoperable with Mongo's internal Aggregates class. But be warned that Pipeline.initialize has to be called before Stage.toBsonDocument, or exceptions will result; similarly the list operations shouldn't be called before initialize is called. JacksonMongoCollection takes care of calling initialize for you.
- Since:
- 2.1.0
- Author:
- Christopher Exell
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Aggregation.Expression<T>
Deprecated.Expression builder class.static class
Aggregation.ExpressionObject
Deprecated.static class
Aggregation.FieldPath<T>
Deprecated.static class
Aggregation.Group
Deprecated.static class
Aggregation.Limit
Deprecated.static class
Aggregation.Literal<T>
Deprecated.static class
Aggregation.Match
Deprecated.static class
Aggregation.OperatorExpression<T>
Deprecated.static class
Aggregation.Out
Deprecated.static class
Aggregation.Pipeline<S>
Deprecated.A fluent Aggregation builder.static class
Aggregation.Project
Deprecated.static class
Aggregation.Skip
Deprecated.static class
Aggregation.Sort
Deprecated.static interface
Aggregation.Stage<S>
Deprecated.static class
Aggregation.Unwind
Deprecated.
-
Constructor Summary
Constructors Constructor Description Aggregation()
Deprecated.
-
Method Summary
-
-
-
Method Detail
-
group
public static Aggregation.Pipeline<Aggregation.Group.Accumulator> group(Aggregation.Expression<?> key, Map<String,Aggregation.Group.Accumulator> calculatedFields)
Deprecated.
-
group
public static Aggregation.Pipeline<Aggregation.Group.Accumulator> group(Aggregation.Expression<?> key)
Deprecated.
-
group
public static Aggregation.Pipeline<Aggregation.Group.Accumulator> group(String key)
Deprecated.
-
limit
public static Aggregation.Pipeline<Void> limit(int n)
Deprecated.
-
match
public static Aggregation.Pipeline<Void> match(DBQuery.Query query)
Deprecated.
-
project
public static Aggregation.Pipeline<Aggregation.Expression<?>> project(DBProjection.ProjectionBuilder projection)
Deprecated.
-
project
public static Aggregation.Pipeline<Aggregation.Expression<?>> project(String field)
Deprecated.
-
project
public static Aggregation.Pipeline<Aggregation.Expression<?>> project(String field, Aggregation.Expression<?> value)
Deprecated.
-
skip
public static Aggregation.Pipeline<Void> skip(int n)
Deprecated.
-
sort
public static Aggregation.Pipeline<Void> sort(DBSort.SortBuilder builder)
Deprecated.
-
unwind
public static Aggregation.Pipeline<Void> unwind(String path)
Deprecated.
-
-