public class AggregatorImpl<T,R> extends Object implements Aggregator<T,R>
| Constructor and Description |
|---|
AggregatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOperator(com.mongodb.DBObject o) |
List<R> |
aggregate() |
void |
aggregate(AsyncOperationCallback<R> callback) |
Morphium |
getMorphium() |
Class<? extends R> |
getResultType() |
Class<? extends T> |
getSearchType() |
Group<T,R> |
group(com.mongodb.BasicDBObject id) |
Group<T,R> |
group(Map<String,String> idSubObject) |
Group<T,R> |
group(String id) |
Aggregator<T,R> |
limit(int num) |
Aggregator<T,R> |
match(Query<T> q) |
Aggregator<T,R> |
project(com.mongodb.BasicDBObject m) |
Aggregator<T,R> |
project(Map<String,Object> m) |
Aggregator<T,R> |
project(String... m) |
void |
setMorphium(Morphium m) |
void |
setResultType(Class<? extends R> type) |
void |
setSearchType(Class<? extends T> type) |
Aggregator<T,R> |
skip(int num) |
Aggregator<T,R> |
sort(Map<String,Integer> sort) |
Aggregator<T,R> |
sort(String... prefixed) |
List<com.mongodb.DBObject> |
toAggregationList() |
Aggregator<T,R> |
unwind(String listField) |
public void setMorphium(Morphium m)
setMorphium in interface Aggregator<T,R>public Morphium getMorphium()
getMorphium in interface Aggregator<T,R>public void setSearchType(Class<? extends T> type)
setSearchType in interface Aggregator<T,R>public Class<? extends T> getSearchType()
getSearchType in interface Aggregator<T,R>public void setResultType(Class<? extends R> type)
setResultType in interface Aggregator<T,R>public Class<? extends R> getResultType()
getResultType in interface Aggregator<T,R>public Aggregator<T,R> project(Map<String,Object> m)
project in interface Aggregator<T,R>public Aggregator<T,R> project(String... m)
project in interface Aggregator<T,R>public Aggregator<T,R> project(com.mongodb.BasicDBObject m)
project in interface Aggregator<T,R>public Aggregator<T,R> match(Query<T> q)
match in interface Aggregator<T,R>public Aggregator<T,R> limit(int num)
limit in interface Aggregator<T,R>public Aggregator<T,R> skip(int num)
skip in interface Aggregator<T,R>public Aggregator<T,R> unwind(String listField)
unwind in interface Aggregator<T,R>public Aggregator<T,R> sort(String... prefixed)
sort in interface Aggregator<T,R>public Aggregator<T,R> sort(Map<String,Integer> sort)
sort in interface Aggregator<T,R>public Group<T,R> group(com.mongodb.BasicDBObject id)
group in interface Aggregator<T,R>public Group<T,R> group(Map<String,String> idSubObject)
group in interface Aggregator<T,R>public void addOperator(com.mongodb.DBObject o)
addOperator in interface Aggregator<T,R>public void aggregate(AsyncOperationCallback<R> callback)
aggregate in interface Aggregator<T,R>public List<com.mongodb.DBObject> toAggregationList()
toAggregationList in interface Aggregator<T,R>Copyright © 2015. All rights reserved.