PHP Класс Elastica\Aggregation\IpRange

Наследование: extends AbstractAggregation
Показать файл Открыть проект Примеры использования класса

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

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