Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<BsonField> |
Aggregates.GroupStage.fieldAccumulators |
private java.util.List<BsonField> |
BucketOptions.output |
private java.util.List<BsonField> |
BucketAutoOptions.output |
Modifier and Type | Method and Description |
---|---|
private static <TExpression> |
Accumulators.accumulator(java.lang.String name,
java.lang.String fieldName,
TExpression expression) |
static <TExpression> |
Accumulators.addToSet(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 |
---|---|
java.util.List<BsonField> |
BucketOptions.getOutput() |
java.util.List<BsonField> |
BucketAutoOptions.getOutput() |
Modifier and Type | Method and Description |
---|---|
static <TExpression> |
Aggregates.group(TExpression id,
BsonField... fieldAccumulators)
Creates a $group pipeline stage for the specified filter
|
BucketOptions |
BucketOptions.output(BsonField... output)
The definition of the output document in each bucket
|
BucketAutoOptions |
BucketAutoOptions.output(BsonField... output)
The definition of the output document in each bucket
|
Modifier and Type | Method and Description |
---|---|
static <TExpression> |
Aggregates.group(TExpression id,
java.util.List<BsonField> fieldAccumulators)
Creates a $group pipeline stage for the specified filter
|
BucketOptions |
BucketOptions.output(java.util.List<BsonField> output)
The definition of the output document in each bucket
|
BucketAutoOptions |
BucketAutoOptions.output(java.util.List<BsonField> output)
The definition of the output document in each bucket
|
(package private) static void |
Aggregates.writeBucketOutput(CodecRegistry codecRegistry,
BsonDocumentWriter writer,
java.util.List<BsonField> output) |
Constructor and Description |
---|
GroupStage(TExpression id,
java.util.List<BsonField> fieldAccumulators) |