Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
Modifier and Type | Method and Description |
---|---|
AggregationGroupField |
AggregationGroupField.Builder.addToSet(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$addToSet operator to accumulate the unique values of the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.all(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$push operator to accumulate all of the values seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.as(String operator,
int value)
Constructs a new
AggregationGroupField object that uses the
custom operator to aggregate all of the values seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.as(String operator,
String fieldRef)
Constructs a new
AggregationGroupField object that uses the
custom operator to aggregate all of the values seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.average(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$avg operator to compute the average value seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.count()
Constructs a new
AggregationGroupField object that uses the
$sum operator to count all of the input documents. |
AggregationGroupField |
AggregationGroupField.Builder.first(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$first operator to use the first value seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.last(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$last operator to use the last value seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.maximum(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$max operator to use the maximum value seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.minimum(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$min operator to use the minimum value seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.push(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$push operator to accumulate all of the values seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.sum(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$sum operator to sum all of the values seen from the
fieldRef. |
AggregationGroupField |
AggregationGroupField.Builder.uniqueValuesOf(String fieldRef)
Constructs a new
AggregationGroupField object that uses the
$addToSet operator to accumulate the unique values of the
fieldRef. |
Modifier and Type | Method and Description |
---|---|
Aggregate.Builder |
Aggregate.Builder.group(AggregationGroupId.Builder id,
AggregationGroupField... aggregations)
Adds a $group operation to the pipeline to aggregate
documents passing this point in the pipeline into a group of
documents.
|
Aggregate.Builder |
Aggregate.Builder.group(AggregationGroupId id,
AggregationGroupField... aggregations)
Adds a $group operation to the pipeline to aggregate
documents passing this point in the pipeline into a group of
documents.
|
Aggregate.Builder |
Aggregate.Builder.group(DocumentAssignable id,
AggregationGroupField... aggregations)
Adds a $group operation to the pipeline to aggregate
documents passing this point in the pipeline into a group of
documents.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.