public interface ExecutableAggregationOperation
ExecutableAggregationOperation allows creation and execution of MongoDB aggregation operations in a fluent
API style. Aggregation provided via by into the
MongoDB specific representation, as well as mapping back the resulting Document. An alternative
input type for mapping the Aggregation can be provided by using
TypedAggregation.
aggregateAndReturn(Jedi.class)
.by(newAggregation(Human.class, project("These are not the droids you are looking for")))
.all();
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ExecutableAggregationOperation.AggregationWithAggregation<T>
Define the aggregation with pipeline stages.
|
static interface |
ExecutableAggregationOperation.AggregationWithCollection<T>
Collection override (Optional).
|
static interface |
ExecutableAggregationOperation.ExecutableAggregation<T> |
static interface |
ExecutableAggregationOperation.TerminatingAggregation<T>
Trigger execution by calling one of the terminating methods.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ExecutableAggregationOperation.ExecutableAggregation<T> |
aggregateAndReturn(Class<T> domainType)
Start creating an aggregation operation that returns results mapped to the given domain type.
|
<T> ExecutableAggregationOperation.ExecutableAggregation<T> aggregateAndReturn(Class<T> domainType)
TypedAggregation to specify a potentially different
input type for he aggregation.domainType - must not be null.ExecutableAggregationOperation.ExecutableAggregation.IllegalArgumentException - if domainType is null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.