Пример #1
0
 public AggregatorAvgNumeric(
     AggregationForgeFactoryAvg factory,
     int col,
     CodegenCtor rowCtor,
     CodegenMemberCol membersColumnized,
     CodegenClassScope classScope,
     Type optionalDistinctValueType,
     DataInputOutputSerdeForge optionalDistinctSerde,
     bool hasFilter,
     ExprNode optionalFilter,
     Type sumType)
     : base(factory, col, rowCtor, membersColumnized, classScope, optionalDistinctValueType, optionalDistinctSerde, hasFilter, optionalFilter, sumType)
 {
     _factoryMethodAvg = factory;
 }
Пример #2
0
 public AggregatorAvgBig(
     AggregationForgeFactoryAvg factory,
     int col,
     CodegenCtor rowCtor,
     CodegenMemberCol membersColumnized,
     CodegenClassScope classScope,
     Type optionalDistinctValueType,
     DataInputOutputSerdeForge optionalDistinctSerde,
     bool hasFilter,
     ExprNode optionalFilter)
     : base(factory, col, rowCtor, membersColumnized, classScope, optionalDistinctValueType, optionalDistinctSerde, hasFilter, optionalFilter)
 {
     _factory = factory;
     _sum = membersColumnized.AddMember(col, typeof(BigInteger), "sum");
     _cnt = membersColumnized.AddMember(col, typeof(long), "cnt");
     rowCtor.Block.AssignRef(_sum, EnumValue(typeof(BigInteger), "Zero"));
 }