com.espertech.esper.epl.script
Class ExprNodeScriptEvalBase

java.lang.Object
  extended by 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


Field Summary
protected  SimpleNumberCoercer coercer
           
protected  java.lang.String[] names
           
protected  ExprEvaluator[] parameters
           
protected  java.lang.Class returnType
           
protected  java.lang.String scriptName
           
protected  java.lang.String statementName
           
 
Constructor Summary
ExprNodeScriptEvalBase(java.lang.String scriptName, java.lang.String statementName, java.lang.String[] names, ExprEvaluator[] parameters, java.lang.Class returnType)
           
 
Method Summary
 EventBean evaluateGetEventBean(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
           
 java.util.Collection<EventBean> evaluateGetROCollectionEvents(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
           
 java.util.Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
           
 java.lang.Class getComponentTypeCollection()
           
 EventType getEventTypeCollection(EventAdapterService eventAdapterService, java.lang.String statementId)
           
 EventType getEventTypeSingle(EventAdapterService eventAdapterService, java.lang.String statementId)
           
 java.lang.Class getType()
          Returns the type that the node's evaluate method returns an instance of.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.epl.expression.core.ExprEvaluator
evaluate
 

Field Detail

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
Constructor Detail

ExprNodeScriptEvalBase

public ExprNodeScriptEvalBase(java.lang.String scriptName,
                              java.lang.String statementName,
                              java.lang.String[] names,
                              ExprEvaluator[] parameters,
                              java.lang.Class returnType)
Method Detail

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com