net.esper.eql.expression
Class ExprSubselectRowNode
java.lang.Object
net.esper.eql.expression.ExprNode
net.esper.eql.expression.ExprSubselectNode
net.esper.eql.expression.ExprSubselectRowNode
- All Implemented Interfaces:
- ExprEvaluator, ExprValidator, MetaDefItem
public class ExprSubselectRowNode
- extends ExprSubselectNode
Represents a subselect in an expression tree.
Methods inherited from class net.esper.eql.expression.ExprSubselectNode |
equalsNode, evaluate, getStatementSpecCompiled, getStatementSpecRaw, isConstantResult, setFilterExpr, setSelectAsName, setSelectClause, setStatementSpecCompiled, setStrategy, toExpressionString |
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 subquery statement spec from the parser, unvalidated
isAllowWildcardSelect
public boolean isAllowWildcardSelect()
- Description copied from class:
ExprSubselectNode
- Return true to indicate that wildcard selects are acceptable, or false to indicate wildcard is not acceptable
- Specified by:
isAllowWildcardSelect
in class ExprSubselectNode
- Returns:
- true for yes-wildcards, false for no-wildcards
getType
public Class getType()
throws ExprValidationException
- Description copied from interface:
ExprValidator
- Returns the type that the node's evaluate method returns an instance of.
- Returns:
- type returned when evaluated
- Throws:
ExprValidationException
- thrown when validation failed
validate
public void validate(StreamTypeService streamTypeService,
MethodResolutionService methodResolutionService,
ViewResourceDelegate viewResourceDelegate)
throws ExprValidationException
- Description copied from interface:
ExprValidator
- Validate node.
- Parameters:
streamTypeService
- serves stream event type infomethodResolutionService
- - for resolving class names in library method invocationsviewResourceDelegate
- - delegates for view resources to expression nodes
- Throws:
ExprValidationException
- thrown when validation failed
evaluate
public Object evaluate(EventBean[] eventsPerStream,
boolean isNewData,
Set<EventBean> matchingEvents)
- Description copied from class:
ExprSubselectNode
- Evaluate the subquery 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 subquery events
- Returns:
- evaluation result