Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }