IAggregator Interface

NReco.PivotData Class Library Documentation
Represents measure aggregator.

Namespace:  NReco.PivotData
Assembly:  NReco.PivotData (in NReco.PivotData.dll) Version: 1.3.6.0 (1.3.6.0)
Syntax

public interface IAggregator

The IAggregator type exposes the following members.

Properties

  NameDescription
Public propertyCount
Number of facts (data records) used for calculating aggregator value
Public propertyValue
Current aggregator value
Top
Methods

  NameDescription
Public methodGetState
Returns an object that represents compacted "raw" aggregator state
Public methodMerge
Modifies current instance of aggregator by merging with specified compatible aggregator
Public methodPush
Modifies aggregator value by processing specified fact (data record)
Top
Extension Methods

  NameDescription
Public Extension MethodAsComposite
Returns the IAggregator as CompositeAggregator instance.
(Defined by AggregatorExtensions.)
Top
Remarks

Aggregator implements common API for handling various types of measures:
  • measure calculation (Push method)
  • accessing current measure value (Value and Count properties)
  • combining 2 measures of the same type (Merge method)
  • provide compact measure data for serialization (GetState method)
See Also

Reference