Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
static <TExpression> |
Accumulators.addToSet(String fieldName,
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.
|
static <TExpression> |
Accumulators.avg(String fieldName,
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.
|
static <TExpression> |
Accumulators.first(String fieldName,
TExpression expression)
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> |
Accumulators.last(String fieldName,
TExpression expression)
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> |
Accumulators.max(String fieldName,
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.
|
static <TExpression> |
Accumulators.min(String fieldName,
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.
|
static <TExpression> |
Accumulators.push(String fieldName,
TExpression expression)
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> |
Accumulators.stdDevPop(String fieldName,
TExpression expression)
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> |
Accumulators.stdDevSamp(String fieldName,
TExpression expression)
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> |
Accumulators.sum(String fieldName,
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.
|
Modifier and Type | Method and Description |
---|---|
static <TExpression> |
Aggregates.group(TExpression id,
BsonField... fieldAccumulators)
Creates a $group pipeline stage for the specified filter
|
Modifier and Type | Method and Description |
---|---|
static <TExpression> |
Aggregates.group(TExpression id,
List<BsonField> fieldAccumulators)
Creates a $group pipeline stage for the specified filter
|
Copyright © 2016. All Rights Reserved.