public Object Evaluate(EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext exprEvaluatorContext) { var result = new Mutable <object>(); using (Instrument.With( i => i.QExprPrior(this), i => i.AExprPrior(result))) { result.Value = _priorStrategy.Evaluate(eventsPerStream, isNewData, exprEvaluatorContext, _streamNumber, _innerEvaluator, _constantIndexNumber); return(result.Value); } }
public Object Evaluate(EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext exprEvaluatorContext, int streamNumber, ExprEvaluator evaluator, int constantIndexNumber) { int agentInstanceId = exprEvaluatorContext.AgentInstanceId; ExprPriorEvalStrategy strategy = _strategies.Array[agentInstanceId]; return(strategy.Evaluate(eventsPerStream, isNewData, exprEvaluatorContext, streamNumber, evaluator, constantIndexNumber)); }
public Object Evaluate(EventBean[] eventsPerStream, bool isNewData, ExprEvaluatorContext exprEvaluatorContext, int streamNumber, ExprEvaluator evaluator, int constantIndexNumber) { return(strategy.Evaluate(eventsPerStream, isNewData, exprEvaluatorContext, streamNumber, evaluator, constantIndexNumber)); }