public ResultSetProcessorSimple( ResultSetProcessorSimpleFactory prototype, SelectExprProcessor selectExprProcessor, OrderByProcessor orderByProcessor, ExprEvaluatorContext exprEvaluatorContext) { Prototype = prototype; _selectExprProcessor = selectExprProcessor; _orderByProcessor = orderByProcessor; ExprEvaluatorContext = exprEvaluatorContext; if (prototype.IsOutputLast) { _outputLastHelper = new ResultSetProcessorSimpleOutputLastHelper(this); } else if (prototype.IsOutputAll) { _outputAllHelper = new ResultSetProcessorSimpleOutputAllHelper(this); } }
public ResultSetProcessorSimple( ResultSetProcessorSimpleFactory prototype, SelectExprProcessor selectExprProcessor, OrderByProcessor orderByProcessor, AgentInstanceContext agentInstanceContext) { Prototype = prototype; _selectExprProcessor = selectExprProcessor; _orderByProcessor = orderByProcessor; ExprEvaluatorContext = agentInstanceContext; if (prototype.IsOutputLast) { // output-last always uses this mechanism _outputLastHelper = prototype.ResultSetProcessorHelperFactory .MakeRSSimpleOutputLast(prototype, this, agentInstanceContext); } else if (prototype.IsOutputAll && prototype.IsEnableOutputLimitOpt) { _outputAllHelper = prototype.ResultSetProcessorHelperFactory .MakeRSSimpleOutputAll(prototype, this, agentInstanceContext); } }