net.esper.eql.expression
Class ExprSubselectRowNode

java.lang.Object
  extended by net.esper.eql.expression.ExprNode
      extended by net.esper.eql.expression.ExprSubselectNode
          extended by net.esper.eql.expression.ExprSubselectRowNode
All Implemented Interfaces:
Serializable, ExprEvaluator, ExprValidator, MetaDefItem

public class ExprSubselectRowNode
extends ExprSubselectNode

Represents a subselect in an expression tree.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.esper.eql.expression.ExprNode
ExprNode.MappedPropertyParseResult
 
Field Summary
 
Fields inherited from class net.esper.eql.expression.ExprSubselectNode
filterExpr, rawEventType, selectClause
 
Constructor Summary
ExprSubselectRowNode(StatementSpecRaw statementSpec)
          Ctor.
 
Method Summary
 Object evaluate(EventBean[] eventsPerStream, boolean isNewData, Set<EventBean> matchingEvents)
          Evaluate the lookup expression returning an evaluation result object.
 Class getType()
          Returns the type that the node's evaluate method returns an instance of.
 void validate(StreamTypeService streamTypeService, MethodResolutionService methodResolutionService, ViewResourceDelegate viewResourceDelegate, TimeProvider timeProvider, VariableService variableService)
          Validate node.
 
Methods inherited from class net.esper.eql.expression.ExprSubselectNode
equalsNode, evaluate, getStatementSpecCompiled, getStatementSpecRaw, isConstantResult, setFilterExpr, setRawEventType, setSelectAsName, setSelectClause, setStatementSpecCompiled, setStrategy, toExpressionString
 
Methods inherited from class net.esper.eql.expression.ExprNode
accept, addChildNode, deepEquals, dumpDebug, getChildNodes, getValidatedSubtree, parseMappedProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprSubselectRowNode

public ExprSubselectRowNode(StatementSpecRaw statementSpec)
Ctor.

Parameters:
statementSpec - is the lookup statement spec from the parser, unvalidated
Method Detail

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,
                     TimeProvider timeProvider,
                     VariableService variableService)
              throws ExprValidationException
Description copied from interface: ExprValidator
Validate node.

Parameters:
streamTypeService - serves stream event type info
methodResolutionService - - for resolving class names in library method invocations
viewResourceDelegate - - delegates for view resources to expression nodes
timeProvider - - provides engine current time
variableService - - provides access to variable values
Throws:
ExprValidationException - thrown when validation failed

evaluate

public Object evaluate(EventBean[] eventsPerStream,
                       boolean isNewData,
                       Set<EventBean> matchingEvents)
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 join
isNewData - is true for new data, or false for old data
matchingEvents - is filtered results from the table of stored lookup events
Returns:
evaluation result

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com