예제 #1
0
 public AggregatorRateEver(
     AggregationForgeFactoryRate 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;
     _points = membersColumnized.AddMember(col, typeof(Deque<long>), "points");
     _hasLeave = membersColumnized.AddMember(col, typeof(bool), "hasLeave");
     rowCtor.Block.AssignRef(_points, NewInstance(typeof(ArrayDeque<long>)));
 }
예제 #2
0
 public AggregatorRate(
     AggregationForgeFactoryRate 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;
     _accumulator = membersColumnized.AddMember(col, typeof(double), "accumulator");
     _latest = membersColumnized.AddMember(col, typeof(long), "latest");
     _oldest = membersColumnized.AddMember(col, typeof(long), "oldest");
     _isSet = membersColumnized.AddMember(col, typeof(bool), "isSet");
 }