com.espertech.esper.epl.expression
Class ExprSubselectRowNode
java.lang.Object
com.espertech.esper.epl.expression.ExprNodeBase
com.espertech.esper.epl.expression.ExprSubselectNode
com.espertech.esper.epl.expression.ExprSubselectRowNode
- All Implemented Interfaces:
- ExprEvaluator, ExprEvaluatorEnumeration, ExprNode, ExprValidator, MetaDefItem, java.io.Serializable
public class ExprSubselectRowNode
- extends ExprSubselectNode
Represents a subselect in an expression tree.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
evaluate(EventBean[] eventsPerStream,
boolean isNewData,
java.util.Collection<EventBean> matchingEvents,
ExprEvaluatorContext exprEvaluatorContext)
Evaluate the lookup expression returning an evaluation result object. |
java.util.Collection<EventBean> |
evaluateGetCollEvents(EventBean[] eventsPerStream,
boolean isNewData,
java.util.Collection<EventBean> matchingEvents,
ExprEvaluatorContext context)
|
java.util.Collection |
evaluateGetCollScalar(EventBean[] eventsPerStream,
boolean isNewData,
java.util.Collection<EventBean> matchingEvents,
ExprEvaluatorContext context)
|
EventBean |
evaluateGetEventBean(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
|
java.lang.Class |
getComponentTypeCollection()
|
java.util.Map<java.lang.String,java.lang.Object> |
getEventType()
|
EventType |
getEventTypeCollection(EventAdapterService eventAdapterService)
|
EventType |
getEventTypeSingle(EventAdapterService eventAdapterService,
java.lang.String statementId)
|
java.lang.Object |
getMultirowMessage()
|
java.lang.Class |
getType()
Returns the type that the node's evaluate method returns an instance of. |
boolean |
isAllowMultiColumnSelect()
|
void |
validateSubquery(ExprValidationContext validationContext)
|
Methods inherited from class com.espertech.esper.epl.expression.ExprSubselectNode |
equalsNode, evaluate, evaluateGetROCollectionEvents, evaluateGetROCollectionScalar, getExprEvaluator, getFilterExpr, getFilterSubqueryStreamTypes, getRawEventType, getSelectClause, getStatementSpecCompiled, getStatementSpecRaw, getSubselectNumber, isAggregatedSubquery, isConstantResult, isFilterStreamSubselect, setAggregatedSubquery, setFilterExpr, setFilterStreamSubselect, setFilterSubqueryStreamTypes, setRawEventType, setSelectAsNames, setSelectClause, setStatementSpecCompiled, setStrategy, toArray, toExpressionString, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprSubselectRowNode
public ExprSubselectRowNode(StatementSpecRaw statementSpec)
- Ctor.
- Parameters:
statementSpec
- is the lookup statement spec from the parser, unvalidated
getType
public java.lang.Class getType()
- Description copied from interface:
ExprEvaluator
- Returns the type that the node's evaluate method returns an instance of.
- Returns:
- type returned when evaluated
getEventType
public java.util.Map<java.lang.String,java.lang.Object> getEventType()
throws ExprValidationException
- Throws:
ExprValidationException
validateSubquery
public void validateSubquery(ExprValidationContext validationContext)
throws ExprValidationException
- Specified by:
validateSubquery
in class ExprSubselectNode
- Throws:
ExprValidationException
evaluateGetCollEvents
public java.util.Collection<EventBean> evaluateGetCollEvents(EventBean[] eventsPerStream,
boolean isNewData,
java.util.Collection<EventBean> matchingEvents,
ExprEvaluatorContext context)
- Specified by:
evaluateGetCollEvents
in class ExprSubselectNode
evaluateGetCollScalar
public java.util.Collection evaluateGetCollScalar(EventBean[] eventsPerStream,
boolean isNewData,
java.util.Collection<EventBean> matchingEvents,
ExprEvaluatorContext context)
- Specified by:
evaluateGetCollScalar
in class ExprSubselectNode
getEventTypeSingle
public EventType getEventTypeSingle(EventAdapterService eventAdapterService,
java.lang.String statementId)
throws ExprValidationException
- Throws:
ExprValidationException
evaluateGetEventBean
public EventBean evaluateGetEventBean(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
getEventTypeCollection
public EventType getEventTypeCollection(EventAdapterService eventAdapterService)
throws ExprValidationException
- Throws:
ExprValidationException
getComponentTypeCollection
public java.lang.Class getComponentTypeCollection()
throws ExprValidationException
- Throws:
ExprValidationException
evaluate
public java.lang.Object evaluate(EventBean[] eventsPerStream,
boolean isNewData,
java.util.Collection<EventBean> matchingEvents,
ExprEvaluatorContext exprEvaluatorContext)
- Description copied from class:
ExprSubselectNode
- Evaluate the lookup expression returning an evaluation result object.
- Specified by:
evaluate
in class ExprSubselectNode
- Parameters:
eventsPerStream
- is the events for each stream in a joinisNewData
- is true for new data, or false for old datamatchingEvents
- is filtered results from the table of stored lookup eventsexprEvaluatorContext
- context for expression evalauation
- Returns:
- evaluation result
isAllowMultiColumnSelect
public boolean isAllowMultiColumnSelect()
- Specified by:
isAllowMultiColumnSelect
in class ExprSubselectNode
getMultirowMessage
public java.lang.Object getMultirowMessage()