Klasse InMemAggregator<T,R>
- Alle implementierten Schnittstellen:
Aggregator<T,R>
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen Aggregator
Aggregator.BucketGranularity, Aggregator.GeoNearFields, Aggregator.MergeActionWhenMatched, Aggregator.MergeActionWhenNotMatched -
Konstruktorübersicht
Konstruktoren -
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> Categorizes incoming documents into groups, called buckets, based on a specified expression and bucket boundaries and outputs a document per each bucket.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> facets) 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<?> type, Expr startWith, Enum connectFromField, Enum connectToField, String as, Integer maxDepth, String depthField, Query restrictSearchWithMatch) Aggregator<T, R> graphLookup(Class<?> type, 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) $lookup: { from:, localField: , foreignField: Ungültige Eingabe: "<"field from the documents of the "from" collection>, as: 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> redact needs to resolve to $$DESCEND, $$PRUNE, or $$KEEPAggregator<T, R> replaceRoot(Expr newRoot) Aggregator<T, R> replaceWith(Expr newDoc) 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> Adds new fields to documents.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 sortby) The $sortByCount stage is equivalent to the following $group + $sort sequence:Aggregator<T, R> unionWith(Aggregator agg) Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R> Aggregator<T, R>
-
Konstruktordetails
-
InMemAggregator
-
-
Methodendetails
-
getCollation
- Angegeben von:
getCollationin SchnittstelleAggregator<T,R>
-
isUseDisk
public boolean isUseDisk()- Angegeben von:
isUseDiskin SchnittstelleAggregator<T,R>
-
setUseDisk
public void setUseDisk(boolean useDisk) - Angegeben von:
setUseDiskin SchnittstelleAggregator<T,R>
-
getAggregateCmd
- Angegeben von:
getAggregateCmdin SchnittstelleAggregator<T,R>
-
isExplain
public boolean isExplain()- Angegeben von:
isExplainin SchnittstelleAggregator<T,R>
-
setExplain
public void setExplain(boolean explain) - Angegeben von:
setExplainin SchnittstelleAggregator<T,R>
-
getMorphium
- Angegeben von:
getMorphiumin SchnittstelleAggregator<T,R>
-
setMorphium
- Angegeben von:
setMorphiumin SchnittstelleAggregator<T,R>
-
getSearchType
- Angegeben von:
getSearchTypein SchnittstelleAggregator<T,R>
-
setSearchType
- Angegeben von:
setSearchTypein SchnittstelleAggregator<T,R>
-
getResultType
- Angegeben von:
getResultTypein SchnittstelleAggregator<T,R>
-
setResultType
- Angegeben von:
setResultTypein SchnittstelleAggregator<T,R>
-
project
- Angegeben von:
projectin SchnittstelleAggregator<T,R>
-
project
- Angegeben von:
projectin SchnittstelleAggregator<T,R>
-
project
- Angegeben von:
projectin SchnittstelleAggregator<T,R>
-
addFields
- Angegeben von:
addFieldsin SchnittstelleAggregator<T,R>
-
match
- Angegeben von:
matchin SchnittstelleAggregator<T,R>
-
matchSubQuery
- Angegeben von:
matchSubQueryin SchnittstelleAggregator<T,R>
-
match
- Angegeben von:
matchin SchnittstelleAggregator<T,R>
-
limit
- Angegeben von:
limitin SchnittstelleAggregator<T,R>
-
skip
- Angegeben von:
skipin SchnittstelleAggregator<T,R>
-
unwind
- Angegeben von:
unwindin SchnittstelleAggregator<T,R>
-
unwind
- Angegeben von:
unwindin SchnittstelleAggregator<T,R>
-
sort
- Angegeben von:
sortin SchnittstelleAggregator<T,R>
-
sort
- Angegeben von:
sortin SchnittstelleAggregator<T,R>
-
getCollectionName
- Angegeben von:
getCollectionNamein SchnittstelleAggregator<T,R>
-
setCollectionName
- Angegeben von:
setCollectionNamein SchnittstelleAggregator<T,R>
-
group
-
group
-
group
-
addOperator
- Angegeben von:
addOperatorin SchnittstelleAggregator<T,R>
-
aggregate
-
getCount
public long getCount()- Angegeben von:
getCountin SchnittstelleAggregator<T,R>
-
aggregateIterable
- Angegeben von:
aggregateIterablein SchnittstelleAggregator<T,R>
-
aggregate
- Angegeben von:
aggregatein SchnittstelleAggregator<T,R>
-
aggregateMap
- Angegeben von:
aggregateMapin SchnittstelleAggregator<T,R>
-
getPipeline
- Angegeben von:
getPipelinein SchnittstelleAggregator<T,R>
-
count
- Angegeben von:
countin SchnittstelleAggregator<T,R>
-
count
- Angegeben von:
countin SchnittstelleAggregator<T,R>
-
bucket
public Aggregator<T,R> bucket(Expr groupBy, List<Expr> boundaries, Expr preset, Map<String, Expr> output) Categorizes incoming documents into groups, called buckets, based on a specified expression and bucket boundaries and outputs a document per each bucket. Each output document contains an _id field whose value specifies the inclusive lower bound of the bucket. The output option specifies the fields included in each output document.$bucket only produces output documents for buckets that contain at least one input document. wear)
- Angegeben von:
bucketin SchnittstelleAggregator<T,R> - Parameter:
groupBy- : Expression to group by, usually a field nameboundaries- : Boundaries for the bucketspreset- : the default, needs to be a literaloutput- : definition of output documents and accumulator- Gibt zurück:
-
bucketAuto
public Aggregator<T,R> bucketAuto(Expr groupBy, int numBuckets, Map<String, Expr> output, Aggregator.BucketGranularity granularity) - Angegeben von:
bucketAutoin SchnittstelleAggregator<T,R>
-
collStats
public Aggregator<T,R> collStats(Boolean latencyHistograms, Double scale, boolean count, boolean queryExecStats) - Angegeben von:
collStatsin SchnittstelleAggregator<T,R> - Parameter:
latencyHistograms- : if null, no latency statsscale- : if null, no storageStatscount-queryExecStats-- Gibt zurück:
-
currentOp
public Aggregator<T,R> currentOp(boolean allUsers, boolean idleConnections, boolean idleCursors, boolean idleSessions, boolean localOps) - Angegeben von:
currentOpin SchnittstelleAggregator<T,R>
-
facetExpr
- Angegeben von:
facetExprin SchnittstelleAggregator<T,R>
-
facet
- Angegeben von:
facetin SchnittstelleAggregator<T,R>
-
geoNear
- Angegeben von:
geoNearin SchnittstelleAggregator<T,R>
-
graphLookup
public Aggregator<T,R> graphLookup(Class<?> type, Expr startWith, Enum connectFromField, Enum connectToField, String as, Integer maxDepth, String depthField, Query restrictSearchWithMatch) - Angegeben von:
graphLookupin SchnittstelleAggregator<T,R>
-
graphLookup
public Aggregator<T,R> graphLookup(Class<?> type, Expr startWith, String connectFromField, String connectToField, String as, Integer maxDepth, String depthField, Query restrictSearchWithMatch) - Angegeben von:
graphLookupin SchnittstelleAggregator<T,R>
-
graphLookup
public Aggregator<T,R> graphLookup(String fromCollection, Expr startWith, String connectFromField, String connectToField, String as, Integer maxDepth, String depthField, Query restrictSearchWithMatch) - Angegeben von:
graphLookupin SchnittstelleAggregator<T,R>
-
indexStats
- Angegeben von:
indexStatsin SchnittstelleAggregator<T,R>
-
listLocalSessionsAllUsers
- Angegeben von:
listLocalSessionsAllUsersin SchnittstelleAggregator<T,R>
-
listLocalSessions
- Angegeben von:
listLocalSessionsin SchnittstelleAggregator<T,R>
-
listLocalSessions
- Angegeben von:
listLocalSessionsin SchnittstelleAggregator<T,R>
-
listSessionsAllUsers
- Angegeben von:
listSessionsAllUsersin SchnittstelleAggregator<T,R>
-
listSessions
- Angegeben von:
listSessionsin SchnittstelleAggregator<T,R>
-
listSessions
- Angegeben von:
listSessionsin SchnittstelleAggregator<T,R>
-
lookup
public Aggregator<T,R> lookup(Class fromType, Enum localField, Enum foreignField, String outputArray, List<Expr> pipeline, Map<String, Expr> let) $lookup: { from:, localField: , foreignField: Ungültige Eingabe: "<"field from the documents of the "from" collection>, as: - Angegeben von:
lookupin SchnittstelleAggregator<T,R> - Gibt zurück:
-
lookup
-
merge
public Aggregator<T,R> merge(String intoDb, String intoCollection, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields) - Angegeben von:
mergein SchnittstelleAggregator<T,R>
-
merge
-
merge
public Aggregator<T,R> merge(Class<?> intoCollection, Map<String, Expr> let, List<Map<String, Expr>> machedPipeline, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields) - Angegeben von:
mergein SchnittstelleAggregator<T,R>
-
merge
- Angegeben von:
mergein SchnittstelleAggregator<T,R>
-
merge
- Angegeben von:
mergein SchnittstelleAggregator<T,R>
-
merge
- Angegeben von:
mergein SchnittstelleAggregator<T,R>
-
merge
public Aggregator<T,R> merge(String intoCollection, Aggregator.MergeActionWhenMatched matchAction, Aggregator.MergeActionWhenNotMatched notMatchedAction, String... onFields) - Angegeben von:
mergein SchnittstelleAggregator<T,R>
-
out
- Angegeben von:
outin SchnittstelleAggregator<T,R>
-
out
- Angegeben von:
outin SchnittstelleAggregator<T,R>
-
out
- Angegeben von:
outin SchnittstelleAggregator<T,R>
-
planCacheStats
- Angegeben von:
planCacheStatsin SchnittstelleAggregator<T,R>
-
redact
redact needs to resolve to $$DESCEND, $$PRUNE, or $$KEEPSystem Variable Description $$DESCEND $redact returns the fields at the current document level, excluding embedded documents. To include embedded documents and embedded documents within arrays, apply the $cond expression to the embedded documents to determine access for these embedded documents. $$PRUNE $redact excludes all fields at this current document/embedded document level, without further inspection of any of the excluded fields. This applies even if the excluded field contains embedded documents that may have different access levels. $$KEEP $redact returns or keeps all fields at this current document/embedded document level, without further inspection of the fields at this level. This applies even if the included field contains embedded documents that may have different access levels.
- Angegeben von:
redactin SchnittstelleAggregator<T,R> - Parameter:
redact-- Gibt zurück:
-
replaceRoot
- Angegeben von:
replaceRootin SchnittstelleAggregator<T,R>
-
replaceWith
Beschreibung aus Schnittstelle kopiert:AggregatorReplaces 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.- Angegeben von:
replaceWithin SchnittstelleAggregator<T,R> - Parameter:
newDoc-- Gibt zurück:
-
sample
Beschreibung aus Schnittstelle kopiert:AggregatorRandomly selects the specified number of documents from its input.- Angegeben von:
samplein SchnittstelleAggregator<T,R> - Parameter:
sampleSize-- Gibt zurück:
-
set
Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.The $set stage is an alias for $addFields.
- Angegeben von:
setin SchnittstelleAggregator<T,R> - Parameter:
param-- Gibt zurück:
-
sortByCount
The $sortByCount stage is equivalent to the following $group + $sort sequence:{ $group: { _id:
, count: { $sum: 1 } } }, { $sort: { count: -1 } } - Angegeben von:
sortByCountin SchnittstelleAggregator<T,R> - Parameter:
sortby-- Gibt zurück:
-
unionWith
- Angegeben von:
unionWithin SchnittstelleAggregator<T,R>
-
unionWith
- Angegeben von:
unionWithin SchnittstelleAggregator<T,R>
-
unset
- Angegeben von:
unsetin SchnittstelleAggregator<T,R>
-
unset
- Angegeben von:
unsetin SchnittstelleAggregator<T,R>
-
unset
- Angegeben von:
unsetin SchnittstelleAggregator<T,R>
-
genericStage
- Angegeben von:
genericStagein SchnittstelleAggregator<T,R>
-
collation
- Angegeben von:
collationin SchnittstelleAggregator<T,R>
-
execStep
-
aggregateMap
- Angegeben von:
aggregateMapin SchnittstelleAggregator<T,R>
-
explain
- Angegeben von:
explainin SchnittstelleAggregator<T,R> - Löst aus:
MorphiumDriverException
-
explain
public Map<String,Object> explain(ExplainCommand.ExplainVerbosity verbosity) throws MorphiumDriverException - Angegeben von:
explainin SchnittstelleAggregator<T,R> - Löst aus:
MorphiumDriverException
-