Title here
Summary here
Aggregates data by the given aggregation methods. The aggregate is a partial-blocking transformation - only the aggregation values are stored in separate memory objects. When all rows have been processed by the aggregation, the aggregated values are written into the output.
public class MyDetailValue
{
public int DetailValue { get; set; }
}
public class MyAggRow
{
[AggregateColumn(nameof(MyDetailValue.DetailValue), AggregationMethod.Sum)]
public int AggValue { get; set; }
}
var source = new DbSource<MyDetailValue>("DetailValues");
var agg = new Aggregation<MyDetailValue, MyAggRow>();
var dest = new MemoryDestination<MyAggRow>();
source.LinkTo<MyAggRow>(agg).LinkTo(dest);
Type | Name | Description |
---|---|---|
Action<ExpandoObject, ExpandoObject> | aggregationAction |
Type | Name | Description |
---|---|---|
Action<ExpandoObject, ExpandoObject> | aggregationAction | |
Func<ExpandoObject, object> | groupingFunc |
Type | Name | Description |
---|---|---|
Action<ExpandoObject, ExpandoObject> | aggregationAction | |
Func<ExpandoObject, object> | groupingFunc | |
Action<object, ExpandoObject> | storeKeyAction |