Example usage for Java com.mongodb.client.model Accumulators fields, constructors, methods, implement or subclass
The text is from its open source code.
BsonField | addToSet(final String fieldName, final TExpression expression) Gets a field name for a $group operation representing all unique values that results from applying the given expression to each document in a group of documents that share the same group by key. |
BsonField | avg(final String fieldName, final TExpression expression) Gets a field name for a $group operation representing the average of the values of the given expression when applied to all members of the group. |
BsonField | max(final String fieldName, final TExpression expression) Gets a field name for a $group operation representing the maximum of the values of the given expression when applied to all members of the group. |
BsonField | min(final String fieldName, final TExpression expression) Gets a field name for a $group operation representing the minimum of the values of the given expression when applied to all members of the group. |
BsonField | sum(final String fieldName, final TExpression expression) Gets a field name for a $group operation representing the sum of the values of the given expression when applied to all members of the group. |