Пример #1
0
 protected MinMaxAggregatorAcrossSlots(IChannel ch, IRowCursor cursor, int col, bool returnMax)
     : base(ch, cursor, col)
 {
     ReturnMax = returnMax;
     if (ReturnMax)
     {
         ProcValueDelegate = ProcessValueMax;
     }
     else
     {
         ProcValueDelegate = ProcessValueMin;
     }
 }
Пример #2
0
            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];
            }