public void SetUp() { var selectExprEventTypeRegistry = new SelectExprEventTypeRegistry("abc", new StatementEventTypeRefImpl()); var statementContext = SupportStatementContextFactory.MakeContext(); var factory = new SelectExprProcessorHelper( Collections.GetEmptyList <int>(), SupportSelectExprFactory.MakeNoAggregateSelectList(), Collections.GetEmptyList <SelectExprStreamDesc>(), null, null, false, new SupportStreamTypeSvc1Stream(), SupportEventAdapterService.Service, null, selectExprEventTypeRegistry, statementContext.EngineImportService, 1, "stmtname", null, new Configuration(), null, new TableServiceImpl(), null); _selectExprProcessor = factory.Evaluator; _orderByProcessor = null; var prototype = new ResultSetProcessorSimpleFactory(_selectExprProcessor, null, true, null, false, null, 1); _outputProcessorAll = (ResultSetProcessorSimple)prototype.Instantiate(null, null, null); }
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); } }
public ResultSetProcessorSimpleOutputAllHelper MakeRSSimpleOutputAll(ResultSetProcessorSimpleFactory prototype, ResultSetProcessorSimple resultSetProcessorSimple, AgentInstanceContext agentInstanceContext) { return(new ResultSetProcessorSimpleOutputAllHelperImpl(resultSetProcessorSimple)); }