com.espertech.esper.epl.spec
Class StatementSpecCompiled

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

public class StatementSpecCompiled
extends java.lang.Object

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


Field Summary
static StatementSpecCompiled DEFAULT_SELECT_ALL_EMPTY
           
 
Constructor Summary
StatementSpecCompiled()
          Ctor.
StatementSpecCompiled(OnTriggerDesc onTriggerDesc, CreateWindowDesc createWindowDesc, CreateIndexDesc createIndexDesc, CreateVariableDesc createVariableDesc, CreateTableDesc createTableDesc, CreateSchemaDesc createSchemaDesc, InsertIntoDesc insertIntoDesc, SelectClauseStreamSelectorEnum selectClauseStreamSelectorEnum, SelectClauseSpecCompiled selectClauseSpec, StreamSpecCompiled[] streamSpecs, OuterJoinDesc[] outerJoinDescList, ExprNode filterExprRootNode, ExprNode havingExprRootNode, OutputLimitSpec outputLimitSpec, OrderByItem[] orderByList, ExprSubselectNode[] subSelectExpressions, ExprDeclaredNode[] declaredExpressions, java.util.Set<java.lang.String> variableReferences, RowLimitSpec rowLimitSpec, java.lang.String[] eventTypeReferences, java.lang.annotation.Annotation[] annotations, UpdateDesc updateSpec, MatchRecognizeSpec matchRecognizeSpec, ForClauseSpec forClauseSpec, java.util.Map<java.lang.Integer,java.util.List<ExprNode>> sqlParameters, CreateContextDesc contextDesc, java.lang.String optionalContextName, CreateDataFlowDesc createGraphDesc, CreateExpressionDesc createExpressionDesc, FireAndForgetSpec fireAndForgetSpec, GroupByClauseExpressions groupByExpressions, IntoTableSpec intoTableSpec, ExprTableAccessNode[] tableNodes)
          Ctor.
 
Method Summary
 java.lang.annotation.Annotation[] getAnnotations()
          Returns annotations or empty array if none.
 CreateContextDesc getContextDesc()
           
 CreateExpressionDesc getCreateExpressionDesc()
           
 CreateDataFlowDesc getCreateGraphDesc()
           
 CreateIndexDesc getCreateIndexDesc()
          Returns create index
 CreateSchemaDesc getCreateSchemaDesc()
           
 CreateTableDesc getCreateTableDesc()
           
 CreateVariableDesc getCreateVariableDesc()
          Returns the create-variable statement descriptor.
 CreateWindowDesc getCreateWindowDesc()
          Returns the specification for an create-window statement.
 ExprDeclaredNode[] getDeclaredExpressions()
           
 java.lang.String[] getEventTypeReferences()
          Returns the event type name in used by the statement.
 ExprNode getFilterRootNode()
          Returns the WHERE-clause root node of filter expression.
 FireAndForgetSpec getFireAndForgetSpec()
           
 ForClauseSpec getForClauseSpec()
           
 GroupByClauseExpressions getGroupByExpressions()
           
 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.
 IntoTableSpec getIntoTableSpec()
           
 MatchRecognizeSpec getMatchRecognizeSpec()
          Returns the match recognize spec, if used
 OnTriggerDesc getOnTriggerDesc()
          Returns the specification for an on-delete or on-select statement.
 java.lang.String getOptionalContextName()
           
 OrderByItem[] getOrderByList()
          Returns the list of order-by expression as specified in the ORDER BY clause.
 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.
 RowLimitSpec getRowLimitSpec()
          Returns the row limit specification, or null if none supplied.
 SelectClauseSpecCompiled getSelectClauseSpec()
          Returns SELECT-clause list of expressions.
 SelectClauseStreamSelectorEnum getSelectStreamSelectorEnum()
          Returns the stream selector (rstream/istream).
 java.util.Map<java.lang.Integer,java.util.List<ExprNode>> getSqlParameters()
           
 StreamSpecCompiled[] getStreamSpecs()
          Returns the FROM-clause stream definitions.
 ExprSubselectNode[] getSubSelectExpressions()
          Returns the list of lookup expression nodes.
 ExprTableAccessNode[] getTableNodes()
           
 UpdateDesc getUpdateSpec()
          Returns the update spec if update clause is used.
 java.util.Set<java.lang.String> getVariableReferences()
          Return variables referenced.
 boolean isHasVariables()
          Returns true to indicate the statement has variables.
 void setFilterExprRootNode(ExprNode optionalFilterNode)
          Set the where clause filter node.
 void setInsertIntoDesc(InsertIntoDesc insertIntoDesc)
          Sets the insert-into clause.
 void setSelectClauseSpec(SelectClauseSpecCompiled selectClauseSpec)
          Sets the select clause.
 void setSelectStreamDirEnum(SelectClauseStreamSelectorEnum selectStreamDirEnum)
          Sets the stream selection.
 void setStreamSpecs(StreamSpecCompiled[] streamSpecs)
          Sets the FROM-clause stream definitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SELECT_ALL_EMPTY

public static final StatementSpecCompiled DEFAULT_SELECT_ALL_EMPTY
Constructor Detail

StatementSpecCompiled

public StatementSpecCompiled(OnTriggerDesc onTriggerDesc,
                             CreateWindowDesc createWindowDesc,
                             CreateIndexDesc createIndexDesc,
                             CreateVariableDesc createVariableDesc,
                             CreateTableDesc createTableDesc,
                             CreateSchemaDesc createSchemaDesc,
                             InsertIntoDesc insertIntoDesc,
                             SelectClauseStreamSelectorEnum selectClauseStreamSelectorEnum,
                             SelectClauseSpecCompiled selectClauseSpec,
                             StreamSpecCompiled[] streamSpecs,
                             OuterJoinDesc[] outerJoinDescList,
                             ExprNode filterExprRootNode,
                             ExprNode havingExprRootNode,
                             OutputLimitSpec outputLimitSpec,
                             OrderByItem[] orderByList,
                             ExprSubselectNode[] subSelectExpressions,
                             ExprDeclaredNode[] declaredExpressions,
                             java.util.Set<java.lang.String> variableReferences,
                             RowLimitSpec rowLimitSpec,
                             java.lang.String[] eventTypeReferences,
                             java.lang.annotation.Annotation[] annotations,
                             UpdateDesc updateSpec,
                             MatchRecognizeSpec matchRecognizeSpec,
                             ForClauseSpec forClauseSpec,
                             java.util.Map<java.lang.Integer,java.util.List<ExprNode>> sqlParameters,
                             CreateContextDesc contextDesc,
                             java.lang.String optionalContextName,
                             CreateDataFlowDesc createGraphDesc,
                             CreateExpressionDesc createExpressionDesc,
                             FireAndForgetSpec fireAndForgetSpec,
                             GroupByClauseExpressions groupByExpressions,
                             IntoTableSpec intoTableSpec,
                             ExprTableAccessNode[] tableNodes)
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
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
rowLimitSpec - row limit specification, or null if none supplied
eventTypeReferences - event type names statically determined
annotations - statement annotations
updateSpec - update specification if used
matchRecognizeSpec - if provided
variableReferences - variables referenced
createIndexDesc - when an index get

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 StreamSpecCompiled[] getStreamSpecs()
Returns the FROM-clause stream definitions.

Returns:
list of stream specifications

setStreamSpecs

public void setStreamSpecs(StreamSpecCompiled[] streamSpecs)
Sets the FROM-clause stream definitions.

Parameters:
streamSpecs - 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 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

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 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 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 variables.

Returns:
true for statements that use variables

setSelectStreamDirEnum

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

Parameters:
selectStreamDirEnum - stream selection

getRowLimitSpec

public RowLimitSpec getRowLimitSpec()
Returns the row limit specification, or null if none supplied.

Returns:
row limit spec if any

getEventTypeReferences

public java.lang.String[] getEventTypeReferences()
Returns the event type name in used by the statement.

Returns:
set of event type name

getAnnotations

public java.lang.annotation.Annotation[] getAnnotations()
Returns annotations or empty array if none.

Returns:
annotations

setInsertIntoDesc

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

Parameters:
insertIntoDesc - insert-into clause.

setSelectClauseSpec

public void setSelectClauseSpec(SelectClauseSpecCompiled selectClauseSpec)
Sets the select clause.

Parameters:
selectClauseSpec - select clause

getUpdateSpec

public UpdateDesc getUpdateSpec()
Returns the update spec if update clause is used.

Returns:
update desc

getMatchRecognizeSpec

public MatchRecognizeSpec getMatchRecognizeSpec()
Returns the match recognize spec, if used

Returns:
match recognize spec

getVariableReferences

public java.util.Set<java.lang.String> getVariableReferences()
Return variables referenced.

Returns:
variables

getCreateIndexDesc

public CreateIndexDesc getCreateIndexDesc()
Returns create index

Returns:
create index

getCreateSchemaDesc

public CreateSchemaDesc getCreateSchemaDesc()

getForClauseSpec

public ForClauseSpec getForClauseSpec()

getSqlParameters

public java.util.Map<java.lang.Integer,java.util.List<ExprNode>> getSqlParameters()

getDeclaredExpressions

public ExprDeclaredNode[] getDeclaredExpressions()

getContextDesc

public CreateContextDesc getContextDesc()

getOptionalContextName

public java.lang.String getOptionalContextName()

getCreateGraphDesc

public CreateDataFlowDesc getCreateGraphDesc()

getCreateExpressionDesc

public CreateExpressionDesc getCreateExpressionDesc()

getFireAndForgetSpec

public FireAndForgetSpec getFireAndForgetSpec()

getGroupByExpressions

public GroupByClauseExpressions getGroupByExpressions()

getIntoTableSpec

public IntoTableSpec getIntoTableSpec()

getTableNodes

public ExprTableAccessNode[] getTableNodes()

getCreateTableDesc

public CreateTableDesc getCreateTableDesc()

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com