Constructor and Description |
---|
AggregationResults(List<T> mappedResults,
com.mongodb.DBObject rawResults)
Creates a new
AggregationResults instance from the given mapped and raw results. |
Modifier and Type | Method and Description |
---|---|
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() |
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.public T getUniqueMappedResult()
IllegalArgumentException
- in case more than one result is available.public String getServerUsed()
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.