Aggregation
class Aggregation
Aggregation represents a data aggregation method.
Use one of the static methods count, sum, lastValue or distribution to construct an Aggregation.
Constants
NONE |
No or unknown Aggregation type. |
COUNT |
Count Aggregation type. |
SUM |
Sum Aggregation type. |
DISTRIBUTION |
Distribution Aggregation type. |
LAST_VALUE |
LastValue Aggregation type. |
Methods
Returns the type of the aggregation.
Returns the bucket boundaries of the Distribution Aggregation.
Returns a new Count Aggregation
Returns a new Distribution Aggregation with the provided Bucket Boundaries.
Returns a new LastValue Aggregation.
Returns a new Sum Aggregation.
Details
at line 58
final int
getType()
Returns the type of the aggregation.
at line 68
final array
getBucketBoundaries()
Returns the bucket boundaries of the Distribution Aggregation.
at line 81
final static Aggregation
count()
Returns a new Count Aggregation
at line 94
final static Aggregation
distribution(array $bounds)
Returns a new Distribution Aggregation with the provided Bucket Boundaries.
Bucket Boundaries needs to be an array of integer and/or floats.
at line 112
final static Aggregation
lastValue()
Returns a new LastValue Aggregation.
at line 122
final static Aggregation
sum()
Returns a new Sum Aggregation.