Copied!

RawRangeAggregation

RawRangeAggregation.php : 14
Implements RawAggregation

Properties

protected $name

AbstractRangeAggregation.php : 20

The name of the aggregation.

protected string $name

protected $ranges

AbstractRangeAggregation.php : 23
protected array<string|int, Range$ranges

Methods

public__construct()

RawRangeAggregation.php : 19
public __construct(string $name, string $fieldName[, array<string|int, mixed> $ranges = [] ])

Parameters

Name Type Default value Description
$name string - -
$fieldName string - -
$ranges array<string|int, mixed> [] -

publicfromGenerator()

RawRangeAggregation.php : 31
public static fromGenerator(string $name, string $fieldName, RangesGeneratorInterface $generator) : self

Parameters

Name Type Default value Description
$name string - -
$fieldName string - -
$generator RangesGeneratorInterface - -

Return values

self

publicgetFieldName()

RawRangeAggregation.php : 26
public getFieldName() : string

Return values

string

publicgetName()

AbstractRangeAggregation.php : 36
public getName() : string

Return values

string

publicgetRanges()

AbstractRangeAggregation.php : 31
public getRanges() : array<string|int, mixed>

Return values

array<string|int, mixed>