Example usage for Java com.mongodb.client.model Aggregates fields, constructors, methods, implement or subclass
The text is from its open source code.
Bson | group(@Nullable final TExpression id, final BsonField... fieldAccumulators) Creates a $group pipeline stage for the specified filter |
Bson | group(@Nullable final TExpression id, final List Creates a $group pipeline stage for the specified filter |
Bson | limit(final int limit) Creates a $limit pipeline stage for the specified filter |
Bson | lookup(final String from, final String localField, final String foreignField, final String as) Creates a $lookup pipeline stage, joining the current collection with the one specified in from using equality match between the local field and the foreign field |
Bson | lookup(final String from, @Nullable final List Creates a $lookup pipeline stage, joining the current collection with the one specified in from using the given pipeline |
Bson | match(final Bson filter) Creates a $match pipeline stage for the specified filter |
Bson | project(final Bson projection) Creates a $project pipeline stage for the specified projection |
Bson | skip(final int skip) Creates a $skip pipeline stage |
Bson | sort(final Bson sort) Creates a $sort pipeline stage for the specified sort specification |
Bson | unwind(final String fieldName) Creates a $unwind pipeline stage for the specified field name, which must be prefixed by a '$' sign. |