public class ExprIdentNodeEvaluatorContext extends java.lang.Object implements ExprIdentNodeEvaluator
Constructor and Description |
---|
ExprIdentNodeEvaluatorContext(int streamNum,
java.lang.Class resultType,
EventPropertyGetter getter) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
Evaluate event tuple and return result.
|
boolean |
evaluatePropertyExists(EventBean[] eventsPerStream,
boolean isNewData) |
EventPropertyGetter |
getGetter() |
int |
getStreamNum() |
java.lang.Class |
getType()
Returns the type that the node's evaluate method returns an instance of.
|
boolean |
isContextEvaluated() |
public ExprIdentNodeEvaluatorContext(int streamNum, java.lang.Class resultType, EventPropertyGetter getter)
public boolean evaluatePropertyExists(EventBean[] eventsPerStream, boolean isNewData)
evaluatePropertyExists
in interface ExprIdentNodeEvaluator
public int getStreamNum()
getStreamNum
in interface ExprIdentNodeEvaluator
public java.lang.Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
ExprEvaluator
evaluate
in interface ExprEvaluator
eventsPerStream
- - event tupleisNewData
- - indicates whether we are dealing with new data (istream) or old data (rstream)context
- context for expression evaluationpublic java.lang.Class getType()
ExprEvaluator
getType
in interface ExprEvaluator
public EventPropertyGetter getGetter()
getGetter
in interface ExprIdentNodeEvaluator
public boolean isContextEvaluated()
isContextEvaluated
in interface ExprIdentNodeEvaluator