com.espertech.esper.epl.expression
Interface ExprEvaluator
- All Known Subinterfaces:
- ExprAggregateNode, ExprAndNode, ExprBetweenNode, ExprConstantNode, ExprIdentNodeEvaluator, ExprInNode, ExprRelationalOpNode, ExprTimePeriod, ExprVariableNode
- All Known Implementing Classes:
- ExprAggMultiFunctionLinearAccessNode, ExprAggMultiFunctionSortedMinMaxByNode, ExprAggregateNodeBase, ExprAndNodeImpl, ExprArrayNode, ExprAvedevNode, ExprAvgNode, ExprBetweenNodeImpl, ExprBitWiseNode, ExprCaseNode, ExprCastNode, ExprCoalesceNode, ExprConcatNode, ExprConstantNodeImpl, ExprContextPropertyNode, ExprCountNode, ExprDeclaredEvalBase, ExprDeclaredEvalConstant, ExprDeclaredEvalNoRewrite, ExprDeclaredEvalRewrite, ExprDotEvalPropertyExprBase, ExprDotEvalPropertyExprIndexed, ExprDotEvalPropertyExprMapped, ExprDotEvalRootChild, ExprDotEvalStaticMethod, ExprDotEvalStreamEventBean, ExprDotEvalStreamMethod, ExprDotEvalTransposeAsStream, ExprDotEvalVariable, ExprEqualsAllAnyNode, ExprEqualsNodeImpl.ExprEqualsEvaluatorCoercing, ExprEqualsNodeImpl.ExprEqualsEvaluatorEquals, ExprEqualsNodeImpl.ExprEqualsEvaluatorIs, ExprEvaluatorStreamLongProp, ExprEvaluatorStreamLongPropFragment, ExprFirstEverNode, ExprIdentNodeEvaluatorContext, ExprIdentNodeEvaluatorImpl, ExprIdentNodeEvaluatorLogging, ExprInNodeImpl, ExprInstanceofNode, ExprIStreamNode, ExprLambdaGoesNode, ExprLastEverNode, ExprLeavingAggNode, ExprLikeNode, ExprMathNode, ExprMedianNode, ExprMinMaxAggrNode, ExprMinMaxRowNode, ExprNewNode, ExprNodeScriptEvalBase, ExprNodeScriptEvalJSR223, ExprNodeScriptEvalMVEL, ExprNodeUtilExprEvalMethodContext, ExprNodeUtilExprEvalStreamNumEnumColl, ExprNodeUtilExprEvalStreamNumEnumSingle, ExprNodeUtilExprEvalStreamNumEvent, ExprNodeUtilExprEvalStreamNumUnd, ExprNodeValidated, ExprNotNode, ExprNthAggNode, ExprNumberSetCronParam, ExprNumberSetFrequency, ExprNumberSetList, ExprNumberSetRange, ExprNumberSetWildcard, ExprOrderedExpr, ExprOrNode, ExprPlugInAggFunctionFactoryNode, ExprPlugInAggFunctionNode, ExprPlugInAggMultiFunctionNode, ExprPreviousMatchRecognizeNode, ExprPreviousNode, ExprPriorNode, ExprPropertyExistsNode, ExprRateAggNode, ExprRegexpNode, ExprRelationalOpAllAnyNode, ExprRelationalOpNodeImpl, ExprStddevNode, ExprStreamUnderlyingNodeImpl, ExprSubselectAllSomeAnyNode, ExprSubselectExistsNode, ExprSubselectInNode, ExprSubselectNode, ExprSubselectRowNode, ExprSumNode, ExprTimePeriodImpl, ExprTimestampNode, ExprTypeofNode.FragmentTypeEval, ExprTypeofNode.StreamEventTypeEval, ExprVariableNodeImpl, PropertyExprEvaluatorNonLambda, PropertyExprEvaluatorNonLambdaFragment, PropertyExprEvaluatorNonLambdaIndexed, PropertyExprEvaluatorNonLambdaMapped, SelectExprInsertEventBeanFactory.ExprEvaluatorJoinWildcard
public interface ExprEvaluator
Interface for evaluating of an event tuple.
Method Summary |
java.lang.Object |
evaluate(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
Evaluate event tuple and return result. |
java.util.Map<java.lang.String,java.lang.Object> |
getEventType()
|
java.lang.Class |
getType()
Returns the type that the node's evaluate method returns an instance of. |
evaluate
java.lang.Object evaluate(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
- Evaluate event tuple and return result.
- Parameters:
eventsPerStream
- - event tupleisNewData
- - indicates whether we are dealing with new data (istream) or old data (rstream)context
- context for expression evaluation
- Returns:
- evaluation result, a boolean value for OR/AND-type evalution nodes.
getType
java.lang.Class getType()
- Returns the type that the node's evaluate method returns an instance of.
- Returns:
- type returned when evaluated
getEventType
java.util.Map<java.lang.String,java.lang.Object> getEventType()
throws ExprValidationException
- Throws:
ExprValidationException