Object -
streams
:
Aggregator
Abstract object, which should be implemented in order to create a new aggregator.
Methods
Returns a copy of self, but it does not contain the current state.
-
Return Type
(Aggregator) A
Aggregatorobject.
Updates the aggregated value and returns the final aggregated value.
Parameters
- value anydata
-
value being aggregated.
- eventType EventType
-
Type of the incoming event
streams:CURRENT,streams:EXPIREDorstreams:RESET. Based on the type of the eventvaluewill be added to the aggregation or removed from the aggregation.
-
Return Type
(anydata) Updated aggregated value after
valuebeing aggregated.