Method |
Description |
|
__construct ( Builder $builder ) |
|
|
addToSet ( mixed | Expr $expression ) : Operator |
Returns an array of all unique values that results from applying an
expression to each document in a group of documents that share the same
group by key. Order of the elements in the output array is unspecified. |
|
avg ( mixed | Expr $expression ) : Operator |
Returns the average value of the numeric values that result from applying
a specified expression to each document in a group of documents that
share the same group by key. Ignores nun-numeric values. |
|
expression ( mixed | Expr $value ) |
Used to use an expression as field value. Can be any expression |
|
field ( string $fieldName ) |
Set the current field for building the expression. |
|
first ( mixed | Expr $expression ) : Operator |
Returns the value that results from applying an expression to the first
document in a group of documents that share the same group by key. Only
meaningful when documents are in a defined order. |
|
getExpression ( ) |
|
|
last ( mixed | Expr $expression ) : Operator |
Returns the value that results from applying an expression to the last
document in a group of documents that share the same group by a field. |
|
max ( mixed | Expr $expression ) : Operator |
Returns the highest value that results from applying an expression to
each document in a group of documents that share the same group by key. |
|
min ( mixed | Expr $expression ) : Operator |
Returns the lowest value that results from applying an expression to each
document in a group of documents that share the same group by key. |
|
push ( mixed | Expr $expression ) : Operator |
Returns an array of all values that result from applying an expression to
each document in a group of documents that share the same group by key. |
|
stdDevPop ( mixed | Expr $expression ) |
Calculates the population standard deviation of the input values. |
|
stdDevSamp ( mixed | Expr $expression ) |
Calculates the sample standard deviation of the input values. |
|
sum ( mixed | Expr $expression ) : Operator |
Calculates and returns the sum of all the numeric values that result from
applying a specified expression to each document in a group of documents
that share the same group by key. Ignores nun-numeric values. |
|