%DeepSee.Aggregate.aggregate
Class %DeepSee.Aggregate.aggregate Extends %RegisteredObject [ Abstract, System = 3 ]
Base class for calculating MDX aggregates. This provides the basic interface for aggregartes as used in the MDX engine.
Properties
Count
Property Count As %Integer [ InitialExpression = 0 ];
Keeps a running count of values processed
data
Property data As array Of %Double;
Array of processed values
Methods
ProcessValue
Method ProcessValue(pValue As %Double) As %Status
ProcessValue is called sequentially on each value in a target set. The default behavior of this method is to file the value in the data array in order of arrival.
GetResult
Method GetResult(Output pStatus As %Status) As %Double
GetResult is invoked after every target value has been processed to return the final value of the aggregate.
%PreProcessValue
ClassMethod %PreProcessValue(value As %Double)
Perform any specific validation or other preprocessing just before adding the value to the set
%PostProcessValue
ClassMethod %PostProcessValue(result As %Double)
Perform any specific validation or other postprocessing just before returning the final value