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>))); }
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)); }