com.espertech.esper.epl.expression.core
Interface ExprEvaluator

All Known Subinterfaces:
ExprAggregateNode, ExprAndNode, ExprBetweenNode, ExprEvaluatorTypableReturn, ExprIdentNodeEvaluator, ExprInNode, ExprRelationalOpNode
All Known Implementing Classes:
BindProcessorEvaluatorStream, BindProcessorEvaluatorStreamTable, ExprAggCountMinSketchNode, ExprAggMultiFunctionLinearAccessNode, ExprAggMultiFunctionSortedMinMaxByNode, ExprAggregateNodeBase, ExprAggregateNodeGroupKey, ExprAndNodeImpl, ExprArrayNode, ExprAvedevNode, ExprAvgNode, ExprBetweenNodeImpl, ExprBitWiseNode, ExprCaseNode, ExprCastNodeConstEval, ExprCastNodeNonConstEval, ExprCoalesceNode, ExprConcatNode, ExprConstantNodeImpl, ExprContextPropertyNode, ExprCountEverNode, ExprCountNode, ExprCurrentEvaluationContextNode, ExprDeclaredEvalBase, ExprDeclaredEvalConstant, ExprDeclaredEvalNoRewrite, ExprDeclaredEvalRewrite, ExprDotEvalPropertyExprBase, ExprDotEvalPropertyExprIndexed, ExprDotEvalPropertyExprMapped, ExprDotEvalRootChild, ExprDotEvalStaticMethod, ExprDotEvalStreamEventBean, ExprDotEvalStreamMethod, ExprDotEvalTransposeAsStream, ExprDotEvalVariable, ExprEqualsAllAnyNode, ExprEqualsNodeImpl.ExprEqualsEvaluatorCoercing, ExprEqualsNodeImpl.ExprEqualsEvaluatorEquals, ExprEqualsNodeImpl.ExprEqualsEvaluatorIs, ExprEvaluatorStreamLongProp, ExprEvaluatorStreamLongPropFragment, ExprFirstEverNode, ExprGroupingIdNode, ExprGroupingNode, ExprIdentNodeEvaluatorContext, ExprIdentNodeEvaluatorImpl, ExprIdentNodeEvaluatorLogging, ExprInNodeImpl, ExprInstanceofNode, ExprIStreamNode, ExprLambdaGoesNode, ExprLastEverNode, ExprLeavingAggNode, ExprLikeNode, ExprMathNode, ExprMedianNode, ExprMinMaxAggrNode, ExprMinMaxRowNode, ExprNamedParameterNodeImpl, ExprNewInstanceNode, ExprNewStructNode, ExprNodeScriptEvalBase, ExprNodeScriptEvalJSR223, ExprNodeScriptEvalMVEL, ExprNodeUtilExprEvalMethodContext, ExprNodeUtilExprEvalStreamNumEnumColl, ExprNodeUtilExprEvalStreamNumEnumSingle, ExprNodeUtilExprEvalStreamNumEvent, ExprNodeUtilExprEvalStreamNumEventTable, ExprNodeUtilExprEvalStreamNumUnd, ExprNodeUtilUnderlyingEvaluator, ExprNodeUtilUnderlyingEvaluatorTable, ExprNodeValidated, ExprNotNode, ExprNthAggNode, ExprNumberSetCronParam, ExprNumberSetFrequency, ExprNumberSetList, ExprNumberSetRange, ExprOrderedExpr, ExprOrNode, ExprPlugInAggFunctionFactoryNode, ExprPlugInAggMultiFunctionNode, ExprPreviousMatchRecognizeNode, ExprPreviousNode, ExprPriorNode, ExprPropertyExistsNode, ExprRateAggNode, ExprRegexpNode, ExprRelationalOpAllAnyNode, ExprRelationalOpNodeImpl, ExprStddevNode, ExprStreamUnderlyingNodeImpl, ExprSubselectAllSomeAnyNode, ExprSubselectExistsNode, ExprSubselectInNode, ExprSubselectNode, ExprSubselectRowNode, ExprSumNode, ExprTableAccessNodeKeys, ExprTableAccessNodeSubprop, ExprTableAccessNodeSubpropAccessor, ExprTableAccessNodeTopLevel, ExprTableExprEvaluatorAccess, ExprTableExprEvaluatorMethod, ExprTableIdentNodeSubpropAccessor, ExprTimePeriodImpl, ExprTimestampNode, ExprTypedNoEvalNode, ExprTypeofNode.FragmentTypeEval, ExprTypeofNode.StreamEventTypeEval, ExprVariableNodeImpl, ExprWildcardImpl, 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-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com