PHP 클래스 Doctrine\MongoDB\Aggregation\Stage\Group

부터: 1.2
저자: alcaeus ([email protected])
상속: extends Doctrine\MongoDB\Aggregation\Stage
파일 보기 프로젝트 열기: doctrine/mongodb 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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