com.espertech.esper.epl.spec
Class StatementSpecCompiled

java.lang.Object
  extended by com.espertech.esper.epl.spec.StatementSpecCompiled

public class StatementSpecCompiled
extends Object

Specification object representing a complete EPL statement including all EPL constructs.


Constructor Summary
StatementSpecCompiled()
          Ctor.
StatementSpecCompiled(OnTriggerDesc onTriggerDesc, CreateWindowDesc createWindowDesc, CreateVariableDesc createVariableDesc, InsertIntoDesc insertIntoDesc, SelectClauseStreamSelectorEnum selectClauseStreamSelectorEnum, SelectClauseSpecCompiled selectClauseSpec, List<StreamSpecCompiled> streamSpecs, List<OuterJoinDesc> outerJoinDescList, ExprNode filterExprRootNode, List<ExprNode> groupByExpressions, ExprNode havingExprRootNode, OutputLimitSpec outputLimitSpec, List<OrderByItem> orderByList, List<ExprSubselectNode> subSelectExpressions, boolean hasVariables)
          Ctor.
 
Method Summary
 CreateVariableDesc getCreateVariableDesc()
          Returns the create-variable statement descriptor.
 CreateWindowDesc getCreateWindowDesc()
          Returns the specification for an create-window statement.
 ExprNode getFilterRootNode()
          Returns the WHERE-clause root node of filter expression.
 List<ExprNode> getGroupByExpressions()
          Returns list of group-by expressions.
 ExprNode getHavingExprRootNode()
          Returns expression root node representing the having-clause, if present, or null if no having clause was supplied.
 InsertIntoDesc getInsertIntoDesc()
          Return a descriptor with the insert-into event name and optional list of columns.
 OnTriggerDesc getOnTriggerDesc()
          Returns the specification for an on-delete or on-select statement.
 List<OrderByItem> getOrderByList()
          Returns the list of order-by expression as specified in the ORDER BY clause.
 List<OuterJoinDesc> getOuterJoinDescList()
          Returns the LEFT/RIGHT/FULL OUTER JOIN-type and property name descriptor, if applicable.
 OutputLimitSpec getOutputLimitSpec()
          Returns the output limit definition, if any.
 SelectClauseSpecCompiled getSelectClauseSpec()
          Returns SELECT-clause list of expressions.
 SelectClauseStreamSelectorEnum getSelectStreamSelectorEnum()
          Returns the stream selector (rstream/istream).
 List<StreamSpecCompiled> getStreamSpecs()
          Returns the FROM-clause stream definitions.
 List<ExprSubselectNode> getSubSelectExpressions()
          Returns the list of lookup expression nodes.
 boolean isHasVariables()
          Returns true to indicate the statement has vaiables.
 void setFilterExprRootNode(ExprNode optionalFilterNode)
          Set the where clause filter node.
 void setSelectStreamDirEnum(SelectClauseStreamSelectorEnum selectStreamDirEnum)
          Sets the stream selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementSpecCompiled

public StatementSpecCompiled(OnTriggerDesc onTriggerDesc,
                             CreateWindowDesc createWindowDesc,
                             CreateVariableDesc createVariableDesc,
                             InsertIntoDesc insertIntoDesc,
                             SelectClauseStreamSelectorEnum selectClauseStreamSelectorEnum,
                             SelectClauseSpecCompiled selectClauseSpec,
                             List<StreamSpecCompiled> streamSpecs,
                             List<OuterJoinDesc> outerJoinDescList,
                             ExprNode filterExprRootNode,
                             List<ExprNode> groupByExpressions,
                             ExprNode havingExprRootNode,
                             OutputLimitSpec outputLimitSpec,
                             List<OrderByItem> orderByList,
                             List<ExprSubselectNode> subSelectExpressions,
                             boolean hasVariables)
Ctor.

Parameters:
insertIntoDesc - insert into def
selectClauseStreamSelectorEnum - stream selection
selectClauseSpec - select clause
streamSpecs - specs for streams
outerJoinDescList - outer join def
filterExprRootNode - where filter expr nodes
groupByExpressions - group by expression
havingExprRootNode - having expression
outputLimitSpec - output limit
orderByList - order by
subSelectExpressions - list of subqueries
onTriggerDesc - describes on-delete statements
createWindowDesc - describes create-window statements
createVariableDesc - describes create-variable statements
hasVariables - indicator whether the statement uses variables

StatementSpecCompiled

public StatementSpecCompiled()
Ctor.

Method Detail

getCreateWindowDesc

public CreateWindowDesc getCreateWindowDesc()
Returns the specification for an create-window statement.

Returns:
create-window spec, or null if not such a statement

getCreateVariableDesc

public CreateVariableDesc getCreateVariableDesc()
Returns the create-variable statement descriptor.

Returns:
create-variable spec

getStreamSpecs

public List<StreamSpecCompiled> getStreamSpecs()
Returns the FROM-clause stream definitions.

Returns:
list of stream specifications

getSelectClauseSpec

public SelectClauseSpecCompiled getSelectClauseSpec()
Returns SELECT-clause list of expressions.

Returns:
list of expressions and optional name

getFilterRootNode

public ExprNode getFilterRootNode()
Returns the WHERE-clause root node of filter expression.

Returns:
filter expression root node

getOuterJoinDescList

public List<OuterJoinDesc> getOuterJoinDescList()
Returns the LEFT/RIGHT/FULL OUTER JOIN-type and property name descriptor, if applicable. Returns null if regular join.

Returns:
outer join type, stream names and property names

getGroupByExpressions

public List<ExprNode> getGroupByExpressions()
Returns list of group-by expressions.

Returns:
group-by expression nodes as specified in group-by clause

getHavingExprRootNode

public ExprNode getHavingExprRootNode()
Returns expression root node representing the having-clause, if present, or null if no having clause was supplied.

Returns:
having-clause expression top node

getOutputLimitSpec

public OutputLimitSpec getOutputLimitSpec()
Returns the output limit definition, if any.

Returns:
output limit spec

getInsertIntoDesc

public InsertIntoDesc getInsertIntoDesc()
Return a descriptor with the insert-into event name and optional list of columns.

Returns:
insert into specification

getOrderByList

public List<OrderByItem> getOrderByList()
Returns the list of order-by expression as specified in the ORDER BY clause.

Returns:
Returns the orderByList.

getSelectStreamSelectorEnum

public SelectClauseStreamSelectorEnum getSelectStreamSelectorEnum()
Returns the stream selector (rstream/istream).

Returns:
stream selector

setFilterExprRootNode

public void setFilterExprRootNode(ExprNode optionalFilterNode)
Set the where clause filter node.

Parameters:
optionalFilterNode - is the where-clause filter node

getSubSelectExpressions

public List<ExprSubselectNode> getSubSelectExpressions()
Returns the list of lookup expression nodes.

Returns:
lookup nodes

getOnTriggerDesc

public OnTriggerDesc getOnTriggerDesc()
Returns the specification for an on-delete or on-select statement.

Returns:
on-trigger spec, or null if not such a statement

isHasVariables

public boolean isHasVariables()
Returns true to indicate the statement has vaiables.

Returns:
true for statements that use variables

setSelectStreamDirEnum

public void setSelectStreamDirEnum(SelectClauseStreamSelectorEnum selectStreamDirEnum)
Sets the stream selection.

Parameters:
selectStreamDirEnum - stream selection

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