PHP 클래스 Elastica\Aggregation\Range

상속: extends AbstractSimpleAggregation
파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

공개 메소드들

메소드 설명
addRange ( integer | float $fromValue = null, integer | float $toValue = null, string $key = null ) Add a range to this aggregation.
setKeyedResponse ( boolean $keyed = true ) If set to true, a unique string key will be associated with each bucket, and ranges will be returned as an associative array.

메소드 상세

addRange() 공개 메소드

Add a range to this aggregation.
public addRange ( integer | float $fromValue = null, integer | float $toValue = null, string $key = null )
$fromValue integer | float low end of this range, exclusive (greater than or equal to)
$toValue integer | float high end of this range, exclusive (less than)
$key string customized key value

setKeyedResponse() 공개 메소드

If set to true, a unique string key will be associated with each bucket, and ranges will be returned as an associative array.
public setKeyedResponse ( boolean $keyed = true )
$keyed boolean