Package com.mongodb.client.model
Class Accumulators
java.lang.Object
com.mongodb.client.model.Accumulators
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Builders for accumulators used in the group pipeline stage of an aggregation pipeline.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic <TExpression>
BsonFieldDeprecated.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.static <TExpression>
BsonFieldDeprecated.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.static <TExpression>
BsonFieldDeprecated.Gets a field name for a $group operation representing the value of the given expression when applied to the first member of the group.static <TExpression>
BsonFieldDeprecated.Gets a field name for a $group operation representing the value of the given expression when applied to the last member of the group.static <TExpression>
BsonFieldDeprecated.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.static <TExpression>
BsonFieldDeprecated.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.static <TExpression>
BsonFieldDeprecated.Gets a field name for a $group operation representing an array of all values that results from applying an expression to each document in a group of documents that share the same group by key.static <TExpression>
BsonFieldDeprecated.Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.static <TExpression>
BsonFieldstdDevSamp
(String fieldName, TExpression expression) Deprecated.Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.static <TExpression>
BsonFieldDeprecated.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.
-
Method Details
-
sum
Deprecated.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.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
avg
Deprecated.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.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
first
Deprecated.Gets a field name for a $group operation representing the value of the given expression when applied to the first member of the group.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
last
Deprecated.Gets a field name for a $group operation representing the value of the given expression when applied to the last member of the group.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
max
Deprecated.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.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
min
Deprecated.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.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
push
Deprecated.Gets a field name for a $group operation representing an array of all values that results from applying an expression to each document in a group of documents that share the same group by key.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
addToSet
Deprecated.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.- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
-
stdDevPop
Deprecated.Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.Use if the values encompass the entire population of data you want to represent and do not wish to generalize about a larger population.
- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
- Since:
- 3.2
-
stdDevSamp
Deprecated.Gets a field name for a $group operation representing the sample standard deviation of the values of the given expression when applied to all members of the group.Use if the values encompass a sample of a population of data from which to generalize about the population.
- Type Parameters:
TExpression
- the expression type- Parameters:
fieldName
- the field nameexpression
- the expression- Returns:
- the field
- Since:
- 3.2
-