Exemplo n.º 1
0
 public AggregatorMinMax(
     AggregationFactoryMethodMinMax factory,
     int col,
     CodegenCtor rowCtor,
     CodegenMemberCol membersColumnized,
     CodegenClassScope classScope,
     Type optionalDistinctValueType,
     bool hasFilter,
     ExprNode optionalFilter)
     : base(
         factory,
         col,
         rowCtor,
         membersColumnized,
         classScope,
         optionalDistinctValueType,
         hasFilter,
         optionalFilter)
 {
     this.factory = factory;
     refSet = membersColumnized.AddMember(col, typeof(SortedRefCountedSet<object>), "refSet");
     serde = classScope.AddOrGetDefaultFieldSharable(
         new CodegenSharableSerdeClassTyped(SORTEDREFCOUNTEDSET, factory.ResultType));
     rowCtor.Block.AssignRef(refSet, NewInstance(typeof(SortedRefCountedSet<object>)));
 }
Exemplo n.º 2
0
 public AggregatorMinMaxEver(
     AggregationFactoryMethodMinMax factory,
     int col,
     CodegenCtor rowCtor,
     CodegenMemberCol membersColumnized,
     CodegenClassScope classScope,
     Type optionalDistinctValueType,
     bool hasFilter,
     ExprNode optionalFilter)
     : base(
         factory,
         col,
         rowCtor,
         membersColumnized,
         classScope,
         optionalDistinctValueType,
         hasFilter,
         optionalFilter)
 {
     this.factory = factory;
     currentMinMax = membersColumnized.AddMember(col, typeof(IComparable), "currentMinMax");
     serde = classScope.AddOrGetDefaultFieldSharable(new CodegenSharableSerdeClassTyped(VALUE_NULLABLE, factory.ResultType));
 }