com.espertech.esper.epl.expression
Interface ExprEvaluator

All Known Subinterfaces:
ExprAggregateNode, ExprAndNode, ExprBetweenNode, ExprConstantNode, ExprEvaluatorTypableReturn, ExprIdentNodeEvaluator, ExprInNode, ExprRelationalOpNode, ExprTimePeriod, ExprVariableNode
All Known Implementing Classes:
ExprAggMultiFunctionLinearAccessNode, ExprAggMultiFunctionSortedMinMaxByNode, ExprAggregateNodeBase, ExprAggregateNodeGroupKey, 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.lang.Class getType()
          Returns the type that the node's evaluate method returns an instance of.
 

Method Detail

evaluate

java.lang.Object evaluate(EventBean[] eventsPerStream,
                          boolean isNewData,
                          ExprEvaluatorContext context)
Evaluate event tuple and return result.

Parameters:
eventsPerStream - - event tuple
isNewData - - 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

© 2006-2014 EsperTech Inc.
All rights reserved.
Visit us at espertech.com