Class ExprTableIdentNode
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.expression.table.ExprTableIdentNode
- All Implemented Interfaces:
ExprForge
,ExprForgeInstrumentable
,ExprNode
,ExprNodeRenderable
,ExprValidator
-
Constructor Summary
ConstructorDescriptionExprTableIdentNode
(TableMetaData tableMetadata, String streamOrPropertyName, String unresolvedPropertyName, EPTypeClass returnType, int streamNum, String columnName, int columnNum) -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalsNode
(ExprNode node, boolean ignoreStreamPrefix) Return true if a expression node semantically equals the current node, or false if not.evaluateCodegen
(EPTypeClass requiredType, CodegenMethodScope parent, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) evaluateCodegenUninstrumented
(EPTypeClass requiredType, CodegenMethodScope parent, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) int
getForge()
Returns precedence.int
boolean
static Object
tableColumnAggValue
(int streamNum, int column, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext ctx) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic AggregationRow
tableColumnRow
(int streamNum, EventBean[] eventsPerStream) NOTE: Code-generation-invoked method, method name and parameter order mattersvoid
toPrecedenceFreeEPL
(StringWriter writer, ExprNodeRenderableFlags flags) validate
(ExprValidationContext validationContext) Methods inherited from class com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, checkValidated, checkValidatedException, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
-
Constructor Details
-
ExprTableIdentNode
public ExprTableIdentNode(TableMetaData tableMetadata, String streamOrPropertyName, String unresolvedPropertyName, EPTypeClass returnType, int streamNum, String columnName, int columnNum)
-
-
Method Details
-
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classExprNodeBase
-
getPrecedence
Description copied from interface:ExprNode
Returns precedence.- Specified by:
getPrecedence
in interfaceExprNode
- Returns:
- precedence
-
isConstantResult
public boolean isConstantResult() -
equalsNode
Description copied from interface:ExprNode
Return true if a expression node semantically equals the current node, or false if not.Concrete implementations should compare the type and any additional information that impact the evaluation of a node.
- Specified by:
equalsNode
in interfaceExprNode
- Parameters:
node
- to compare toignoreStreamPrefix
- when the equals-comparison can ignore prefix of event properties- Returns:
- true if semantically equal, or false if not equals
-
validate
- Specified by:
validate
in interfaceExprValidator
- Throws:
ExprValidationException
-
evaluateCodegenUninstrumented
public CodegenExpression evaluateCodegenUninstrumented(EPTypeClass requiredType, CodegenMethodScope parent, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) - Specified by:
evaluateCodegenUninstrumented
in interfaceExprForgeInstrumentable
-
evaluateCodegen
public CodegenExpression evaluateCodegen(EPTypeClass requiredType, CodegenMethodScope parent, ExprForgeCodegenSymbol symbols, CodegenClassScope codegenClassScope) - Specified by:
evaluateCodegen
in interfaceExprForge
-
getForgeConstantType
- Specified by:
getForgeConstantType
in interfaceExprForge
-
getExprEvaluator
- Specified by:
getExprEvaluator
in interfaceExprForge
-
getEvaluationType
- Specified by:
getEvaluationType
in interfaceExprForge
-
getForge
-
getForgeRenderable
- Specified by:
getForgeRenderable
in interfaceExprForge
-
getTableMetadata
-
getStreamNum
public int getStreamNum() -
getColumnNum
public int getColumnNum() -
getUnresolvedPropertyName
-
getColumnName
-
tableColumnRow
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
streamNum
- stream numeventsPerStream
- events- Returns:
- value
-
tableColumnAggValue
public static Object tableColumnAggValue(int streamNum, int column, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext ctx) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
streamNum
- stream numcolumn
- coleventsPerStream
- eventsisNewData
- new-data flowctx
- context- Returns:
- value
-