Class ExprEvalStreamInsertTable
java.lang.Object
com.espertech.esper.common.internal.epl.expression.etc.ExprEvalStreamInsertTable
- All Implemented Interfaces:
ExprEvaluator
,ExprForge
,ExprForgeInstrumentable
,ExprNodeRenderable
public class ExprEvalStreamInsertTable
extends Object
implements ExprForgeInstrumentable, ExprEvaluator, ExprNodeRenderable
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator
EPTYPE, EPTYPEARRAY
-
Constructor Summary
ConstructorDescriptionExprEvalStreamInsertTable
(int streamNum, TableMetaData tableMetadata, EPTypeClass returnType) -
Method Summary
Modifier and TypeMethodDescriptionstatic EventBean
convertToTableEvent
(int streamNum, TableMetadataInternalEventToPublic eventToPublic, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext) NOTE: Code-generation-invoked method, method name and parameter order mattersevaluate
(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext) Evaluate event tuple and return result.evaluateCodegen
(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluateCodegenUninstrumented
(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) void
toEPL
(StringWriter writer, ExprPrecedenceEnum parentPrecedence, ExprNodeRenderableFlags flags)
-
Constructor Details
-
ExprEvalStreamInsertTable
public ExprEvalStreamInsertTable(int streamNum, TableMetaData tableMetadata, EPTypeClass returnType)
-
-
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.
-
evaluateCodegenUninstrumented
public CodegenExpression evaluateCodegenUninstrumented(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) - Specified by:
evaluateCodegenUninstrumented
in interfaceExprForgeInstrumentable
-
evaluateCodegen
public CodegenExpression evaluateCodegen(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) - Specified by:
evaluateCodegen
in interfaceExprForge
-
getForgeConstantType
- Specified by:
getForgeConstantType
in interfaceExprForge
-
convertToTableEvent
public static EventBean convertToTableEvent(int streamNum, TableMetadataInternalEventToPublic eventToPublic, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
streamNum
- stream numeventToPublic
- conversioneventsPerStream
- eventsisNewData
- flagexprEvaluatorContext
- context- Returns:
- event
-
getExprEvaluator
- Specified by:
getExprEvaluator
in interfaceExprForge
-
getEvaluationType
- Specified by:
getEvaluationType
in interfaceExprForge
-
getForgeRenderable
- Specified by:
getForgeRenderable
in interfaceExprForge
-
toEPL
public void toEPL(StringWriter writer, ExprPrecedenceEnum parentPrecedence, ExprNodeRenderableFlags flags) - Specified by:
toEPL
in interfaceExprNodeRenderable
-