Schnittstelle Aggregator<T,R>
- Alle bekannten Implementierungsklassen:
AggregatorImpl, InMemAggregator
public interface Aggregator<T,R>
User: Stephan Bösebeck
Date: 30.08.12
Time: 16:23
Aggregator Framework:
represents the aggregator of Mongo 2.2.x. and above
$project
$match
$limit
$skip
$unwind
$group
$sort
$geoNear - implementation still missing
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifikator und TypSchnittstelleBeschreibungstatic enumstatic enumstatic enumstatic enum -
Methodenübersicht
Modifikator und TypMethodeBeschreibungAggregator<T, R> voidaddOperator(Map<String, Object> o) voidaggregate(AsyncOperationCallback<R> callback) voidaggregateMap(AsyncOperationCallback<Map<String, Object>> callback) Aggregator<T, R> Aggregator<T, R> bucketAuto(Expr groupBy, int numBuckets, Map<String, Expr> output, Aggregator.BucketGranularity granularity) Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> currentOp(boolean allUsers, boolean idleConnections, boolean idleCursors, boolean idleSessions, boolean localOps) explain()explain(ExplainCommand.ExplainVerbosity verbosity) Aggregator<T, R> facet(Map<String, Aggregator> pipeline) Aggregator<T, R> Aggregator<T, R> genericStage(String stageName, Object param) Aggregator<T, R> geoNear(Map<Aggregator.GeoNearFields, Object> param) longgetCount()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> booleanbooleanAggregator<T, R> limit(int num) Aggregator<T, R> Aggregator<T, R> listLocalSessions(List<String> users, List<String> dbs) Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> listSessions(List<String> users, List<String> dbs) Aggregator<T, R> 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> Aggregator<T, R> Aggregator<T, R> matchSubQuery(Query<?> q) Aggregator<T, R> 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> Aggregator<T, R> merge(String intoCollection, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields) Aggregator<T, R> Aggregator<T, R> merge(String intoDb, 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> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> planCacheStats(Map<String, Object> param) Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> see https://docs.mongodb.com/manual/reference/operator/aggregation/redact/Aggregator<T, R> replaceRoot(Expr newRoot) Aggregator<T, R> replaceWith(Expr replacement) Replaces the input document with the specified document.Aggregator<T, R> sample(int sampleSize) Randomly selects the specified number of documents from its input.Aggregator<T, R> Aggregator<T, R> voidsetExplain(boolean explain) voidvoidsetResultType(Class<? extends R> type) voidsetSearchType(Class<? extends T> type) voidsetUseDisk(boolean useDisk) Aggregator<T, R> skip(int num) Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> sortByCount(Expr countBy) Aggregator<T, R> unionWith(Aggregator aggregator) Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R>
-
Methodendetails
-
getMorphium
Morphium getMorphium() -
setMorphium
-
getSearchType
-
setSearchType
-
getResultType
-
setResultType
-
project
-
addFields
-
project
-
project
-
match
-
matchSubQuery
-
match
-
count
-
count
-
bucket
-
bucketAuto
Aggregator<T,R> bucketAuto(Expr groupBy, int numBuckets, Map<String, Expr> output, Aggregator.BucketGranularity granularity) -
collStats
Aggregator<T,R> collStats(Boolean latencyHistograms, Double scale, boolean count, boolean queryExecStats) - Parameter:
latencyHistograms- : if null, no latency statsscale- : if null, no storageStatscount-queryExecStats-- Gibt zurück:
-
currentOp
Aggregator<T,R> currentOp(boolean allUsers, boolean idleConnections, boolean idleCursors, boolean idleSessions, boolean localOps) -
facetExpr
-
facet
-
geoNear
-
graphLookup
-
graphLookup
-
graphLookup
-
indexStats
Aggregator<T,R> indexStats() -
listLocalSessions
Aggregator<T,R> listLocalSessions() -
listLocalSessionsAllUsers
Aggregator<T,R> listLocalSessionsAllUsers() -
listLocalSessions
-
listSessions
Aggregator<T,R> listSessions() -
listSessionsAllUsers
Aggregator<T,R> listSessionsAllUsers() -
listSessions
-
collation
-
getCollation
Collation getCollation() -
lookup
-
lookup
-
merge
Aggregator<T,R> merge(String intoDb, String intoCollection, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields) -
merge
Aggregator<T,R> merge(String intoCollection, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields) -
merge
-
merge
Aggregator<T,R> merge(Class<?> intoCollection, Map<String, Expr> let, List<Map<String, Expr>> machedPipeline, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields) -
merge
-
merge
-
merge
-
out
-
out
-
out
-
planCacheStats
-
redact
see https://docs.mongodb.com/manual/reference/operator/aggregation/redact/- Parameter:
expr-- Gibt zurück:
-
replaceRoot
-
replaceWith
Replaces the input document with the specified document. The operation replaces all existing fields in the input document, including the _id field. With $replaceWith, you can promote an embedded document to the top-level. You can also specify a new document as the replacement.- Parameter:
replacement-- Gibt zurück:
-
sample
Randomly selects the specified number of documents from its input.- Parameter:
sampleSize-- Gibt zurück:
-
set
-
sortByCount
-
unionWith
-
unionWith
-
unset
-
unset
-
unset
-
genericStage
-
limit
-
skip
-
unwind
-
unwind
-
sort
-
sort
-
getCollectionName
String getCollectionName() -
setCollectionName
-
group
-
group
-
group
-
getPipeline
-
addOperator
-
aggregate
-
getCount
long getCount() -
aggregateIterable
MorphiumAggregationIterator<T,R> aggregateIterable() -
aggregate
-
aggregateMap
-
aggregateMap
-
isExplain
boolean isExplain() -
setExplain
void setExplain(boolean explain) -
isUseDisk
boolean isUseDisk() -
setUseDisk
void setUseDisk(boolean useDisk) -
explain
- Löst aus:
MorphiumDriverException
-
explain
Map<String,Object> explain(ExplainCommand.ExplainVerbosity verbosity) throws MorphiumDriverException - Löst aus:
MorphiumDriverException
-
getAggregateCmd
AggregateMongoCommand getAggregateCmd()
-