|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.aggregation.AggregationResults<T>
T - The class in which the results are mapped onto.public class AggregationResults<T>
Collects the results of executing an aggregation operation.
| Constructor Summary | |
|---|---|
AggregationResults(List<T> mappedResults,
com.mongodb.DBObject rawResults)
Creates a new AggregationResults instance from the given mapped and raw results. |
|
| Method Summary | |
|---|---|
List<T> |
getMappedResults()
Returns the aggregation results. |
String |
getServerUsed()
Returns the server that has been used to perform the aggregation. |
T |
getUniqueMappedResult()
Returns the unique mapped result. |
Iterator<T> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AggregationResults(List<T> mappedResults,
com.mongodb.DBObject rawResults)
AggregationResults instance from the given mapped and raw results.
mappedResults - must not be null.rawResults - must not be null.| Method Detail |
|---|
public List<T> getMappedResults()
public T getUniqueMappedResult()
IllegalArgumentException - in case more than one result is available.public Iterator<T> iterator()
iterator in interface Iterable<T>public String getServerUsed()
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||