Documentation ¶
Overview ¶
Package stages provides aggregation stages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Stages = map[string]newStageFunc{
"$addFields": newAddFields,
"$collStats": newCollStats,
"$count": newCount,
"$group": newGroup,
"$limit": newLimit,
"$match": newMatch,
"$project": newProject,
"$set": newSet,
"$skip": newSkip,
"$sort": newSort,
"$unset": newUnset,
"$unwind": newUnwind,
}
Stages maps all supported aggregation Stages.
Functions ¶
func GetStatistics ¶
func GetStatistics(stages []aggregations.Stage) map[Statistic]struct{}
GetStatistics has the same idea as GetPushdownQuery: it returns a list of statistics that need to be fetched from the DB, because they are needed for one or more stages.
Types ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package projection provides projection for aggregations.
|
Package projection provides projection for aggregations. |
Click to show internal directories.
Click to hide internal directories.