PHP Класс Doctrine\MongoDB\Aggregation\Stage\Group

С версии: 1.2
Автор: alcaeus ([email protected])
Наследование: extends Doctrine\MongoDB\Aggregation\Stage
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$expr Doctrine\MongoDB\Aggregation\Expr

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

public __construct ( Builder $builder )
$builder Doctrine\MongoDB\Aggregation\Builder

addToSet() публичный Метод

AddToSet is an accumulator operation only available in the group stage.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/addToSet/
См. также: Expr::addToSet
public addToSet ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

avg() публичный Метод

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.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/avg/
См. также: Expr::avg
public avg ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

expression() публичный Метод

Used to use an expression as field value. Can be any expression
См. также: http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions
См. также: Expr::expression
public expression ( mixed | Expr $value )
$value mixed | Doctrine\MongoDB\Aggregation\Expr

field() публичный Метод

Set the current field for building the expression.
См. также: Expr::field
public field ( string $fieldName )
$fieldName string

first() публичный Метод

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.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/first/
См. также: Expr::first
public first ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

getExpression() публичный Метод

public getExpression ( )

last() публичный Метод

Only meaningful when documents are in a defined order.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/last/
См. также: Expr::last
public last ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

max() публичный Метод

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.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/max/
См. также: Expr::max
public max ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

min() публичный Метод

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.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/min/
См. также: Expr::min
public min ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

push() публичный Метод

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.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/push/
См. также: Expr::push
public push ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

stdDevPop() публичный Метод

The argument can be any expression as long as it resolves to an array.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/stdDevPop/
См. также: Expr::stdDevPop
С версии: 1.3
public stdDevPop ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

stdDevSamp() публичный Метод

The argument can be any expression as long as it resolves to an array.
См. также: https://docs.mongodb.org/manual/reference/operator/aggregation/stdDevSamp/
См. также: Expr::stdDevSamp
С версии: 1.3
public stdDevSamp ( mixed | Expr $expression )
$expression mixed | Doctrine\MongoDB\Aggregation\Expr

sum() публичный Метод

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.
См. также: http://docs.mongodb.org/manual/reference/operator/aggregation/sum/
См. также: Expr::sum
public sum ( mixed | Expr $expression ) : Operator
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
Результат Operator

Описание свойств

$expr защищенное свойство

protected Expr,Doctrine\MongoDB\Aggregation $expr
Результат Doctrine\MongoDB\Aggregation\Expr