public class Aggregation
extends java.lang.Object
| Constructor and Description |
|---|
Aggregation(MongoCollection<?> collection) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<Document> |
getResult() |
void |
group(Document groupQuery) |
void |
limit(java.lang.Number limit) |
void |
match(Document query) |
void |
skip(java.lang.Number skip) |
public Aggregation(MongoCollection<?> collection)
public void match(Document query) throws MongoServerException
MongoServerExceptionpublic void skip(java.lang.Number skip)
throws MongoServerException
MongoServerExceptionpublic void limit(java.lang.Number limit)
throws MongoServerException
MongoServerExceptionpublic void group(Document groupQuery) throws MongoServerException
MongoServerExceptionpublic java.lang.Iterable<Document> getResult() throws MongoServerException
MongoServerException