net.esper.eql.spec
Class StatementSpec

java.lang.Object
  extended by net.esper.eql.spec.StatementSpec

public class StatementSpec
extends java.lang.Object

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


Constructor Summary
StatementSpec()
           
 
Method Summary
 ExprNode getFilterRootNode()
          Returns the WHERE-clause root node of filter expression.
 java.util.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.
 java.util.List<Pair<ExprNode,java.lang.Boolean>> getOrderByList()
          Returns the list of order-by expression as specified in the ORDER BY clause.
 java.util.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.
 java.util.List<SelectExprElementUnnamedSpec> getSelectListExpressions()
          Returns SELECT-clause list of expressions.
 java.util.List<StreamSpec> getStreamSpecs()
          Returns the FROM-clause stream definitions.
 void setFilterExprRootNode(ExprNode filterExprRootNode)
          Sets the where clause filter expression node.
 void setHavingExprRootNode(ExprNode havingExprRootNode)
          Sets the having-clause filter expression node.
 void setInsertIntoDesc(InsertIntoDesc insertIntoDesc)
          Sets the definition for any insert-into clause.
 void setOutputLimitSpec(OutputLimitSpec outputLimitSpec)
          Sets the output limiting definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementSpec

public StatementSpec()
Method Detail

getStreamSpecs

public java.util.List<StreamSpec> getStreamSpecs()
Returns the FROM-clause stream definitions.

Returns:
list of stream specifications

getSelectListExpressions

public java.util.List<SelectExprElementUnnamedSpec> getSelectListExpressions()
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 java.util.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 java.util.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 java.util.List<Pair<ExprNode,java.lang.Boolean>> getOrderByList()
Returns the list of order-by expression as specified in the ORDER BY clause.

Returns:
Returns the orderByList.

setOutputLimitSpec

public void setOutputLimitSpec(OutputLimitSpec outputLimitSpec)
Sets the output limiting definition.

Parameters:
outputLimitSpec - defines the rules for output limiting

setFilterExprRootNode

public void setFilterExprRootNode(ExprNode filterExprRootNode)
Sets the where clause filter expression node.

Parameters:
filterExprRootNode - the where clause expression

setHavingExprRootNode

public void setHavingExprRootNode(ExprNode havingExprRootNode)
Sets the having-clause filter expression node.

Parameters:
havingExprRootNode - the having-clause expression

setInsertIntoDesc

public void setInsertIntoDesc(InsertIntoDesc insertIntoDesc)
Sets the definition for any insert-into clause.

Parameters:
insertIntoDesc - is the descriptor for insert-into rules