Class ExprNodeUtilityEvaluate
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeUtilityEvaluate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
applyFilterExpression
(ExprEvaluator filter, EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext) Apply a filter expression returning a pass indicator.static EventBean[]
applyFilterExpression
(ExprEvaluator filter, EventBean streamZeroEvent, EventBean[] streamOneEvents, ExprEvaluatorContext exprEvaluatorContext) Apply a filter expression.static void
applyFilterExpressionIterable
(Iterator<EventBean> iterator, ExprEvaluator filterExpression, ExprEvaluatorContext exprEvaluatorContext, Collection<EventBean> eventsInWindow) static Object[]
evaluateExpressions
(ExprEvaluator[] parameters, ExprEvaluatorContext exprEvaluatorContext) static int
evaluateIntOptional
(ExprEvaluator evalOptional, EventBean event, int defaultValue, ExprEvaluatorContext exprEvaluatorContext) static Object
evaluateValidationTimeNoStreams
(ExprEvaluator evaluator, ExprEvaluatorContext context, String expressionName)
-
Constructor Details
-
ExprNodeUtilityEvaluate
public ExprNodeUtilityEvaluate()
-
-
Method Details
-
evaluateIntOptional
public static int evaluateIntOptional(ExprEvaluator evalOptional, EventBean event, int defaultValue, ExprEvaluatorContext exprEvaluatorContext) -
evaluateValidationTimeNoStreams
public static Object evaluateValidationTimeNoStreams(ExprEvaluator evaluator, ExprEvaluatorContext context, String expressionName) throws ExprValidationException - Throws:
ExprValidationException
-
applyFilterExpressionIterable
public static void applyFilterExpressionIterable(Iterator<EventBean> iterator, ExprEvaluator filterExpression, ExprEvaluatorContext exprEvaluatorContext, Collection<EventBean> eventsInWindow) -
applyFilterExpression
public static EventBean[] applyFilterExpression(ExprEvaluator filter, EventBean streamZeroEvent, EventBean[] streamOneEvents, ExprEvaluatorContext exprEvaluatorContext) Apply a filter expression.- Parameters:
filter
- expressionstreamZeroEvent
- the event that represents stream zerostreamOneEvents
- all events thate are stream one eventsexprEvaluatorContext
- context for expression evaluation- Returns:
- filtered stream one events
-
applyFilterExpression
public static boolean applyFilterExpression(ExprEvaluator filter, EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext) Apply a filter expression returning a pass indicator.- Parameters:
filter
- to applyeventsPerStream
- events per streamexprEvaluatorContext
- context for expression evaluation- Returns:
- pass indicator
-
evaluateExpressions
public static Object[] evaluateExpressions(ExprEvaluator[] parameters, ExprEvaluatorContext exprEvaluatorContext)
-