public interface Aggregator<T,R>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Aggregator.BucketGranularity |
static class |
Aggregator.GeoNearFields |
static class |
Aggregator.MergeActionWhenMatched |
static class |
Aggregator.MergeActionWhenNotMatched |
Morphium getMorphium()
void setMorphium(Morphium m)
Aggregator<T,R> project(String... m)
Aggregator<T,R> project(String fld, Expr e)
Aggregator<T,R> match(Query<T> q)
Aggregator<T,R> matchSubQuery(Query<?> q)
Aggregator<T,R> match(Expr q)
Aggregator<T,R> count(String fld)
Aggregator<T,R> count(Enum fld)
Aggregator<T,R> bucket(Expr groupBy, List<Expr> boundaries, Expr preset, Map<String,Expr> output)
Aggregator<T,R> bucketAuto(Expr groupBy, int numBuckets, Map<String,Expr> output, Aggregator.BucketGranularity granularity)
Aggregator<T,R> collStats(Boolean latencyHistograms, Double scale, boolean count, boolean queryExecStats)
latencyHistograms: - if null, no latency statsscale: - if null, no storageStatscount - queryExecStats - Aggregator<T,R> currentOp(boolean allUsers, boolean idleConnections, boolean idleCursors, boolean idleSessions, boolean localOps)
Aggregator<T,R> facet(Map<String,Aggregator> pipeline)
Aggregator<T,R> geoNear(Map<Aggregator.GeoNearFields,Object> param)
Aggregator<T,R> graphLookup(Class<?> fromType, Expr startWith, Enum connectFromField, Enum connectToField, String as, Integer maxDepth, String depthField, Query restrictSearchWithMatch)
Aggregator<T,R> graphLookup(Class<?> fromType, Expr startWith, String connectFromField, String connectToField, String as, Integer maxDepth, String depthField, Query restrictSearchWithMatch)
Aggregator<T,R> graphLookup(String fromCollection, Expr startWith, String connectFromField, String connectToField, String as, Integer maxDepth, String depthField, Query restrictSearchWithMatch)
Aggregator<T,R> indexStats()
Aggregator<T,R> listLocalSessions()
Aggregator<T,R> listLocalSessionsAllUsers()
Aggregator<T,R> listSessions()
Aggregator<T,R> listSessionsAllUsers()
Aggregator<T,R> collation(Collation collation)
Collation getCollation()
Aggregator<T,R> lookup(Class fromType, Enum localField, Enum foreignField, String outputArray, List<Expr> pipeline, Map<String,Expr> let)
Aggregator<T,R> lookup(String fromCollection, String localField, String foreignField, String outputArray, List<Expr> pipeline, Map<String,Expr> let)
Aggregator<T,R> merge(String intoDb, String intoCollection, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields)
Aggregator<T,R> merge(String intoCollection, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields)
Aggregator<T,R> merge(String intoCollection, Map<String,Expr> let, List<Map<String,Expr>> machedPipeline, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields)
Aggregator<T,R> merge(Class<?> intoCollection, Map<String,Expr> let, List<Map<String,Expr>> machedPipeline, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields)
Aggregator<T,R> merge(String intoDb, String intoCollection)
Aggregator<T,R> merge(Class<?> intoCollection)
Aggregator<T,R> merge(String intoCollection)
Aggregator<T,R> out(String collection)
Aggregator<T,R> out(Class<?> type)
Aggregator<T,R> out(String db, String collection)
Aggregator<T,R> redact(Expr expr)
expr - Aggregator<T,R> replaceRoot(Expr newRoot)
Aggregator<T,R> replaceWith(Expr replacement)
replacement - Aggregator<T,R> sample(int sampleSize)
sampleSize - Aggregator<T,R> sortByCount(Expr countBy)
Aggregator<T,R> unionWith(String collection)
Aggregator<T,R> unionWith(Aggregator aggregator)
Aggregator<T,R> unset(List<String> field)
Aggregator<T,R> unset(String... param)
Aggregator<T,R> unset(Enum... field)
Aggregator<T,R> genericStage(String stageName, Object param)
Aggregator<T,R> limit(int num)
Aggregator<T,R> skip(int num)
Aggregator<T,R> unwind(Expr listField)
Aggregator<T,R> unwind(String listField)
Aggregator<T,R> sort(String... prefixed)
String getCollectionName()
void setCollectionName(String cn)
long getCount()
MorphiumAggregationIterator<T,R> aggregateIterable()
void aggregate(AsyncOperationCallback<R> callback)
void aggregateMap(AsyncOperationCallback<Map<String,Object>> callback)
boolean isExplain()
void setExplain(boolean explain)
boolean isUseDisk()
void setUseDisk(boolean useDisk)
Copyright © 2022. All rights reserved.