Class ExprInstanceofNodeForgeEval
java.lang.Object
com.espertech.esper.common.internal.epl.expression.funcs.ExprInstanceofNodeForgeEval
- All Implemented Interfaces:
ExprEvaluator
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator
EPTYPE, EPTYPEARRAY
-
Constructor Summary
ConstructorDescriptionExprInstanceofNodeForgeEval
(ExprInstanceofNodeForge forge, ExprEvaluator evaluator) -
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
codegen
(ExprInstanceofNodeForge forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluate
(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext) Evaluate event tuple and return result.static Boolean
instanceofCacheCheckOrAdd
(Class[] classes, CopyOnWriteArrayList<Pair<Class, Boolean>> resultCache, Object result) NOTE: Code-generation-invoked method, method name and parameter order matters
-
Constructor Details
-
ExprInstanceofNodeForgeEval
-
-
Method Details
-
evaluate
public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext) Description copied from interface:ExprEvaluator
Evaluate event tuple and return result.- Specified by:
evaluate
in interfaceExprEvaluator
- Parameters:
eventsPerStream
- - event tupleisNewData
- - indicates whether we are dealing with new data (istream) or old data (rstream)exprEvaluatorContext
- context for expression evaluation- Returns:
- evaluation result, a boolean value for OR/AND-type evalution nodes.
-
instanceofCacheCheckOrAdd
public static Boolean instanceofCacheCheckOrAdd(Class[] classes, CopyOnWriteArrayList<Pair<Class, Boolean>> resultCache, Object result) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
classes
- classesresultCache
- cacheresult
- result- Returns:
- bool
-
codegen
public static CodegenExpression codegen(ExprInstanceofNodeForge forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
-