Class ExprStreamUnderlyingNodeImpl
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.expression.core.ExprStreamUnderlyingNodeImpl
- All Implemented Interfaces:
ExprEnumerationForgeProvider
,ExprEvaluator
,ExprForge
,ExprForgeInstrumentable
,ExprNode
,ExprNodeRenderable
,ExprStreamRefNode
,ExprStreamUnderlyingNode
,ExprValidator
public class ExprStreamUnderlyingNodeImpl
extends ExprNodeBase
implements ExprForgeInstrumentable, ExprEvaluator, ExprStreamUnderlyingNode
Represents an stream selector that returns the streams underlying event, or null if undefined.
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator
EPTYPE, EPTYPEARRAY
-
Constructor Summary
-
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.evaluate
(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) getEnumerationForge
(StreamTypeService streamTypeService, ContextCompileTimeDescriptor contextDescriptor) Returns the enumeration forge provider, or null if not applicablegetForge()
Returns precedence.int
Returns stream id supplying the property value.Returns the stream name.boolean
void
toPrecedenceFreeEPL
(StringWriter writer, ExprNodeRenderableFlags flags) toString()
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNodeRenderable
toEPL
-
Constructor Details
-
ExprStreamUnderlyingNodeImpl
-
-
Method Details
-
getEvaluationType
- Specified by:
getEvaluationType
in interfaceExprForge
-
getExprEvaluator
- Specified by:
getExprEvaluator
in interfaceExprForge
-
getForge
-
getForgeRenderable
- Specified by:
getForgeRenderable
in interfaceExprForge
-
getStreamName
Returns the stream name.- Returns:
- stream name
-
getStreamReferencedIfAny
- Specified by:
getStreamReferencedIfAny
in interfaceExprStreamRefNode
-
getRootPropertyNameIfAny
- Specified by:
getRootPropertyNameIfAny
in interfaceExprStreamRefNode
-
getForgeConstantType
- Specified by:
getForgeConstantType
in interfaceExprForge
-
validate
- Specified by:
validate
in interfaceExprValidator
- Throws:
ExprValidationException
-
isConstantResult
public boolean isConstantResult() -
getStreamId
public int getStreamId()Returns stream id supplying the property value.- Specified by:
getStreamId
in interfaceExprStreamUnderlyingNode
- Returns:
- stream number
-
toString
-
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
-
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classExprNodeBase
-
getPrecedence
Description copied from interface:ExprNode
Returns precedence.- Specified by:
getPrecedence
in interfaceExprNode
- Returns:
- precedence
-
getEventType
- Specified by:
getEventType
in interfaceExprStreamUnderlyingNode
-
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
-
getEnumerationForge
public ExprEnumerationForgeDesc getEnumerationForge(StreamTypeService streamTypeService, ContextCompileTimeDescriptor contextDescriptor) Description copied from interface:ExprEnumerationForgeProvider
Returns the enumeration forge provider, or null if not applicable- Specified by:
getEnumerationForge
in interfaceExprEnumerationForgeProvider
- Parameters:
streamTypeService
- stream type servicecontextDescriptor
- context descriptor- Returns:
- forge provider
-