Mongodb 3.2新的特性
来源:互联网 发布:mac怎么强制删除软件 编辑:程序博客网 时间:2024/06/06 00:21
原文地址:https://docs.mongodb.com/manual/release-notes/3.2/Stage Description Syntax $sampleRandomly selects N documents from its input.{ $sample: { size: <positive integer> } }$indexStatsReturns statistics on index usage.{ $indexStats: { } }$lookupPerforms a left outer join with another collection.Accumulator Description Syntax $stdDevSampCalculates standard deviation.{ $stdDevSamp: <array> }$stdDevPopCalculates population standard deviation.{ $stdDevPop: <array> }Operator Description Syntax $sqrtCalculates the square root.{ $sqrt: <number> }$absReturns the absolute value of a number.{ $abs: <number> }$logCalculates the log of a number in the specified base.{ $log: [ <number>, <base> ] }$log10Calculates the log base 10 of a number.{ $log10: <number> }$lnCalculates the natural log of a number.{ $ln: <number> }$powRaises a number to the specified exponent(指数).{ $pow: [ <number>, <exponent> ] }$expRaises e to the specified exponent.{ exp: <number> }$truncTruncates(截取) a number to its integer.{ $trunc: <number> }$ceilReturns the smallest integer greater than or equal to the specified number.{ $ceil: <number> }$floorReturns the largest integer less than or equal to the specified number.{ floor: <number> }Operator Description Syntax $sliceReturns a subset of an array.$isArrayDetermines if the operand is an array.{ $isArray: [ <expression> ] }$filterSelects a subset of the array based on the condition.
New Aggregation Stages
{ $lookup: { from: <collection to join>, localField: <fieldA>, foreignField: <fieldB>, as: <output array field> }}
New Accumulators(累加器) for $group Stage
New Aggregation Arithmetic Operators
New Aggregation Array Operators
{ $slice: [ <array>, <n> ] }
or
{ $slice: [ <array>, <position>, <n> ] }
$arrayElemAtReturns the element at the specified array index.{ $arrayElemAt: [ <array>, <idx> ] }$concatArraysConcatenates(串联) arrays.{ $concatArrays: [ <array1>, <array2>, ... ]}
{ $filter: { input: <array>, as: <string>, cond: <expression> }}
0 0
- Mongodb 3.2新的特性
- MongoDB 2.4的新特性
- MongoDB 3.0新特性概述
- MongoDB的一些特性
- MongoDB的几个特性
- Mongodb 3.2新的存储引擎
- 解读Android 3.2的新特性
- delphi6的新特性
- D2005的新特性
- Delphi2005的新特性
- Rose2001的新特性
- Oracle11g的新特性
- JDK的新特性
- Maven2 的新特性
- jDK5 的新特性
- VS2008的新特性
- JDK6的新特性
- Delphi2005的新特性
- ubuntu14.04(64bit)主机中安装tftp服务器
- referer 防盗链
- 磁盘阵列各个级别区别
- RGB与YCbCr颜色空间的互相转换公式
- js键盘事件总结
- Mongodb 3.2新的特性
- 程序员的成长阶梯和级别定义
- iOS-封装FMDB框架:各用一句代码更新(添加&修改),查询,删除用户信息
- C语言常见的字符串处理函数
- mysql 日期转换,时间转换,时间段查询
- C# 中使用的加密算法
- 腾讯组织经验tips
- Java多线程学习(吐血超详细总结)
- 求倒数和