protected MinMaxAggregatorAcrossSlots(IChannel ch, IRowCursor cursor, int col, bool returnMax) : base(ch, cursor, col) { ReturnMax = returnMax; if (ReturnMax) { ProcValueDelegate = ProcessValueMax; } else { ProcValueDelegate = ProcessValueMin; } }
protected MinMaxAggregatorBySlot(IChannel ch, ColumnType type, IRowCursor cursor, int col, bool returnMax) : base(ch, type, cursor, col) { Ch.AssertValue(type); ReturnMax = returnMax; if (ReturnMax) { ProcValueDelegate = ProcessValueMax; } else { ProcValueDelegate = ProcessValueMin; } _valuesProcessed = new long[type.VectorSize]; }