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

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

공개 메소드들

메소드 설명
avg ( mixed | Expr $expression1 ) : 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.
excludeIdField ( boolean $exclude = true ) Shorthand method to exclude the _id field.
getExpression ( )
includeFields ( array $fields ) Shorthand method to define which fields to be included.
max ( mixed | Expr $expression1 ) : 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 $expression1 ) : 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.
stdDevPop ( mixed | Expr $expression1 ) Calculates the population standard deviation of the input values.
stdDevSamp ( mixed | Expr $expression1 ) Calculates the sample standard deviation of the input values.
sum ( mixed | Expr $expression1 ) : 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.

메소드 상세

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
부터: 1.3
public avg ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
리턴 Operator

excludeIdField() 공개 메소드

Shorthand method to exclude the _id field.
public excludeIdField ( boolean $exclude = true )
$exclude boolean

getExpression() 공개 메소드

public getExpression ( )

includeFields() 공개 메소드

Shorthand method to define which fields to be included.
public includeFields ( array $fields )
$fields array

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
부터: 1.3
public max ( mixed | Expr $expression1 ) : Operator
$expression1 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
부터: 1.3
public min ( mixed | Expr $expression1 ) : Operator
$expression1 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 $expression1 )
$expression1 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 $expression1 )
$expression1 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
부터: 1.3
public sum ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
리턴 Operator