Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AggregateNode() [2/2]

System.Data.AggregateNode.AggregateNode ( DataTable table,
FunctionId aggregateType,
string columnName,
bool local,
string relationName )
inlinepackage

Definition at line 29 of file AggregateNode.cs.

30 : base(table)
31 {
33 switch (aggregateType)
34 {
35 case FunctionId.Sum:
36 _type = AggregateType.Sum;
37 break;
38 case FunctionId.Avg:
39 _type = AggregateType.Mean;
40 break;
41 case FunctionId.Min:
42 _type = AggregateType.Min;
43 break;
44 case FunctionId.Max:
45 _type = AggregateType.Max;
46 break;
47 case FunctionId.Count:
48 _type = AggregateType.Count;
49 break;
50 case FunctionId.Var:
51 _type = AggregateType.Var;
52 break;
53 case FunctionId.StDev:
54 _type = AggregateType.StDev;
55 break;
56 default:
57 throw ExprException.UndefinedFunction(Function.s_functionName[(int)aggregateType]);
58 }
59 _local = local;
62 }
readonly Aggregate _aggregate
readonly string _relationName
readonly string _columnName
readonly AggregateType _type

References System.Data.AggregateNode._aggregate, System.Data.AggregateNode._columnName, System.Data.AggregateNode._local, System.Data.AggregateNode._relationName, System.Data.AggregateNode._type, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Data.Function.s_functionName, and System.Data.ExprException.UndefinedFunction().