T - The class in which the results are mapped onto.public class AggregationResults<T> extends Object implements Iterable<T>
| Constructor and Description |
|---|
AggregationResults(List<T> mappedResults,
org.bson.Document 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.
|
org.bson.Document |
getRawResults()
Returns the raw result that was returned by the server.
|
String |
getServerUsed()
Returns the server that has been used to perform the aggregation.
|
T |
getUniqueMappedResult()
Returns the unique mapped result.
|
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic AggregationResults(List<T> mappedResults, org.bson.Document rawResults)
AggregationResults instance from the given mapped and raw results.mappedResults - must not be null.rawResults - must not be null.@Nullable public T getUniqueMappedResult()
IllegalArgumentException - in case more than one result is available.@Nullable public String getServerUsed()
public org.bson.Document getRawResults()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.