PHP 클래스 Elastica\Aggregation\IpRange

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

공개 메소드들

메소드 설명
__construct ( string $name, string $field )
addMaskRange ( string $mask ) Add an ip range in the form of a CIDR mask.
addRange ( string $fromValue = null, string $toValue = null ) Add an ip range to this aggregation.
setField ( string $field ) Set the field for this aggregation.

메소드 상세

__construct() 공개 메소드

public __construct ( string $name, string $field )
$name string the name of this aggregation
$field string the field on which to perform this aggregation

addMaskRange() 공개 메소드

Add an ip range in the form of a CIDR mask.
public addMaskRange ( string $mask )
$mask string a valid CIDR mask

addRange() 공개 메소드

Add an ip range to this aggregation.
public addRange ( string $fromValue = null, string $toValue = null )
$fromValue string a valid ipv4 address. Low end of this range, exclusive (greater than)
$toValue string a valid ipv4 address. High end of this range, exclusive (less than)

setField() 공개 메소드

Set the field for this aggregation.
public setField ( string $field )
$field string the name of the document field on which to perform this aggregation