com.espertech.esper.epl.script
Class ExprNodeScriptEvalBase
java.lang.Object
com.espertech.esper.epl.script.ExprNodeScriptEvalBase
- All Implemented Interfaces:
- ExprEvaluator, ExprEvaluatorEnumeration
- Direct Known Subclasses:
- ExprNodeScriptEvalJSR223, ExprNodeScriptEvalMVEL
public abstract class ExprNodeScriptEvalBase
- extends java.lang.Object
- implements ExprEvaluator, ExprEvaluatorEnumeration
Constructor Summary |
ExprNodeScriptEvalBase(java.lang.String scriptName,
java.lang.String statementName,
java.lang.String[] names,
ExprEvaluator[] parameters,
java.lang.Class returnType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scriptName
protected final java.lang.String scriptName
statementName
protected final java.lang.String statementName
names
protected final java.lang.String[] names
parameters
protected final ExprEvaluator[] parameters
returnType
protected final java.lang.Class returnType
coercer
protected final SimpleNumberCoercer coercer
ExprNodeScriptEvalBase
public ExprNodeScriptEvalBase(java.lang.String scriptName,
java.lang.String statementName,
java.lang.String[] names,
ExprEvaluator[] parameters,
java.lang.Class returnType)
getType
public java.lang.Class getType()
- Description copied from interface:
ExprEvaluator
- Returns the type that the node's evaluate method returns an instance of.
- Specified by:
getType
in interface ExprEvaluator
- Returns:
- type returned when evaluated
getEventTypeCollection
public EventType getEventTypeCollection(EventAdapterService eventAdapterService,
java.lang.String statementId)
throws ExprValidationException
- Specified by:
getEventTypeCollection
in interface ExprEvaluatorEnumeration
- Throws:
ExprValidationException
evaluateGetROCollectionEvents
public java.util.Collection<EventBean> evaluateGetROCollectionEvents(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
- Specified by:
evaluateGetROCollectionEvents
in interface ExprEvaluatorEnumeration
getComponentTypeCollection
public java.lang.Class getComponentTypeCollection()
throws ExprValidationException
- Specified by:
getComponentTypeCollection
in interface ExprEvaluatorEnumeration
- Throws:
ExprValidationException
evaluateGetROCollectionScalar
public java.util.Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
- Specified by:
evaluateGetROCollectionScalar
in interface ExprEvaluatorEnumeration
getEventTypeSingle
public EventType getEventTypeSingle(EventAdapterService eventAdapterService,
java.lang.String statementId)
throws ExprValidationException
- Specified by:
getEventTypeSingle
in interface ExprEvaluatorEnumeration
- Throws:
ExprValidationException
evaluateGetEventBean
public EventBean evaluateGetEventBean(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
- Specified by:
evaluateGetEventBean
in interface ExprEvaluatorEnumeration