On this page
Aggregation Commands
在本页面
Note
有关特定运算符的详细信息,包括语法和示例,请单击特定运算符以转到其参考页。
Aggregation Commands
| Name | Description |
|---|---|
| aggregate | 使用聚合框架执行aggregation tasks(例如分组)。 |
| count | 计算集合或视图中的文档数。 |
| distinct | 显示在集合或视图中为指定键找到的不同值。 |
| group | 已弃用。通过指定的键将集合中的文档分组并执行简单的汇总。 |
| mapReduce | 对大型数据集执行map-reduce聚合。 |
Aggregation Methods
| Name | Description |
|---|---|
| db.collection.aggregate() | 提供对aggregation pipeline的访问权限。 |
| db.collection.group() | 不推荐使用。通过指定的键将集合中的文档分组并执行简单的汇总。 |
| db.collection.mapReduce() | 对大型数据集执行map-reduce聚合。 |