GroupedSourceReader populates PivotData with pre-aggregated values provided by underlying IPivotDataSource.
Inheritance Hierarchy
NReco.PivotData.InputGroupedSourceReader
Namespace: NReco.PivotData.Input
Assembly: NReco.PivotData.Extensions (in NReco.PivotData.Extensions.dll) Version: 1.6.1
Syntax
The GroupedSourceReader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GroupedSourceReader(ActionActionIEnumerable, FuncObject, String, Object, String) | Initializes a new instance of the GroupedSourceReader class | |
GroupedSourceReader(IPivotDataSource, String) | Initializes a new instance of the GroupedSourceReader class |
Properties
Name | Description | |
---|---|---|
AggregatorStateComposers |
Gets a list of GroupedSourceReaderIAggregatorStateComposer for aggregators supported by this reader.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Read | ||
ReadState | ||
RegisterKnownAggregators | ||
ToString | (Inherited from Object.) |
Remarks
GroupedSourceReader is useful in cases when PivotData should be loaded with already aggregated data (for example, result of SQL GROUP BY query) for further analytical processing and pivot tables generation.
By default GroupedSourceReader supports the following aggregator types:
CountAggregatorFactory | field for this value is specified as constructor parameter |
SumAggregatorFactory | by convention field name for this value is "[field]_Sum" |
AverageAggregatorFactory | by convention field name for this value is "[field]_Average" |
MinAggregatorFactory | by convention field name for this value is "[field]_Min" |
MaxAggregatorFactory | by convention field name for this value is "[field]_Max" |
See Also