com.espertech.esper.epl.spec
Class StatementSpecRaw

java.lang.Object
  extended by com.espertech.esper.epl.spec.StatementSpecRaw
All Implemented Interfaces:
MetaDefItem, java.io.Serializable

public class StatementSpecRaw
extends java.lang.Object
implements MetaDefItem, java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
StatementSpecRaw(SelectClauseStreamSelectorEnum defaultStreamSelector)
          Ctor.
 
Method Summary
 java.util.List<AnnotationDesc> getAnnotations()
          Returns a list of annotation descriptors.
 CreateContextDesc getCreateContextDesc()
           
 CreateDataFlowDesc getCreateDataFlowDesc()
           
 CreateExpressionDesc getCreateExpressionDesc()
           
 CreateIndexDesc getCreateIndexDesc()
          Returns create-index if any.
 CreateSchemaDesc getCreateSchemaDesc()
           
 CreateTableDesc getCreateTableDesc()
           
 CreateVariableDesc getCreateVariableDesc()
          Returns the descriptor for create-variable statements.
 CreateWindowDesc getCreateWindowDesc()
          Returns the create-window specification.
 ExpressionDeclDesc getExpressionDeclDesc()
           
 java.lang.String getExpressionNoAnnotations()
          Returns the expression text without annotations.
 ExprNode getFilterExprRootNode()
          Gets the where clause.
 ExprNode getFilterRootNode()
          Returns the WHERE-clause root node of filter expression.
 FireAndForgetSpec getFireAndForgetSpec()
           
 ForClauseSpec getForClauseSpec()
           
 java.util.List<GroupByClauseElement> 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.
 IntoTableSpec getIntoTableSpec()
           
 MatchRecognizeSpec getMatchRecognizeSpec()
          Returns the match recognize spec.
 OnTriggerDesc getOnTriggerDesc()
          Returns the on-delete statement specification.
 java.lang.String getOptionalContextName()
           
 java.util.List<OrderByItem> 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.Set<java.lang.String> getReferencedVariables()
          Returns variables referenced
 RowLimitSpec getRowLimitSpec()
          Returns the row limit, or null if none.
 java.util.List<ExpressionScriptProvided> getScriptExpressions()
           
 SelectClauseSpecRaw 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()
           
 java.util.List<StreamSpecRaw> getStreamSpecs()
          Returns the FROM-clause stream definitions.
 java.util.List<ExprSubstitutionNode> getSubstitutionParameters()
           
 java.util.List<ExprTableAccessNode> getTableExpressions()
           
 UpdateDesc getUpdateDesc()
          Returns the update spec.
 boolean isHasVariables()
          Returns true if a statement (or subquery sub-statements) use variables.
 void setAnnotations(java.util.List<AnnotationDesc> annotations)
          Sets a list of annotation descriptors.
 void setCreateContextDesc(CreateContextDesc createContextDesc)
           
 void setCreateDataFlowDesc(CreateDataFlowDesc createDataFlowDesc)
           
 void setCreateExpressionDesc(CreateExpressionDesc createExpressionDesc)
           
 void setCreateIndexDesc(CreateIndexDesc createIndexDesc)
          Set create-index if any.
 void setCreateSchemaDesc(CreateSchemaDesc createSchemaDesc)
           
 void setCreateTableDesc(CreateTableDesc createTableDesc)
           
 void setCreateVariableDesc(CreateVariableDesc createVariableDesc)
          Sets the descriptor for create-variable statements, if this is one.
 void setCreateWindowDesc(CreateWindowDesc createWindowDesc)
          Sets the create-window specification.
 void setExpressionDeclDesc(ExpressionDeclDesc expressionDeclDesc)
           
 void setExpressionNoAnnotations(java.lang.String expressionNoAnnotations)
          Sets the expression text without annotations.
 void setFilterExprRootNode(ExprNode filterExprRootNode)
          Sets the where clause or null if none
 void setFireAndForgetSpec(FireAndForgetSpec fireAndForgetSpec)
           
 void setForClauseSpec(ForClauseSpec forClauseSpec)
           
 void setHasVariables(boolean hasVariables)
          Sets the flag indicating the statement uses variables.
 void setHavingExprRootNode(ExprNode havingExprRootNode)
          Sets the having-clause filter expression node.
 void setInsertIntoDesc(InsertIntoDesc insertIntoDesc)
          Sets the definition for any insert-into clause.
 void setIntoTableSpec(IntoTableSpec intoTableSpec)
           
 void setMatchRecognizeSpec(MatchRecognizeSpec matchRecognizeSpec)
          Sets the match recognize spec
 void setOnTriggerDesc(OnTriggerDesc onTriggerDesc)
          Sets the on-delete statement specification.
 void setOptionalContextName(java.lang.String optionalContextName)
           
 void setOutputLimitSpec(OutputLimitSpec outputLimitSpec)
          Sets the output limiting definition.
 void setReferencedVariables(java.util.Set<java.lang.String> referencedVariables)
          Set variables referenced
 void setRowLimitSpec(RowLimitSpec rowLimitSpec)
          Sets the row limit, or null if none.
 void setScriptExpressions(java.util.List<ExpressionScriptProvided> scriptExpressions)
           
 void setSelectClauseSpec(SelectClauseSpecRaw selectClauseSpec)
          Sets the select clause.
 void setSelectStreamDirEnum(SelectClauseStreamSelectorEnum selectStreamDirEnum)
          Sets the stream selector (rstream/istream/both etc).
 void setSqlParameters(java.util.Map<java.lang.Integer,java.util.List<ExprNode>> sqlParameters)
           
 void setSubstitutionParameters(java.util.List<ExprSubstitutionNode> substitutionParameters)
           
 void setTableExpressions(java.util.List<ExprTableAccessNode> tableExpressions)
           
 void setUpdateDesc(UpdateDesc updateDesc)
          Sets the update specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementSpecRaw

public StatementSpecRaw(SelectClauseStreamSelectorEnum defaultStreamSelector)
Ctor.

Parameters:
defaultStreamSelector - stream selection for the statement
Method Detail

getStreamSpecs

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

Returns:
list of stream specifications

getSelectClauseSpec

public SelectClauseSpecRaw 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 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<GroupByClauseElement> 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<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

setOutputLimitSpec

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

Parameters:
outputLimitSpec - defines the rules for output limiting

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

setSelectStreamDirEnum

public void setSelectStreamDirEnum(SelectClauseStreamSelectorEnum selectStreamDirEnum)
Sets the stream selector (rstream/istream/both etc).

Parameters:
selectStreamDirEnum - to be set

setSelectClauseSpec

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

Parameters:
selectClauseSpec - is the new select clause specification

getCreateWindowDesc

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

Returns:
descriptor for creating a named window

setCreateWindowDesc

public void setCreateWindowDesc(CreateWindowDesc createWindowDesc)
Sets the create-window specification.

Parameters:
createWindowDesc - descriptor for creating a named window

getOnTriggerDesc

public OnTriggerDesc getOnTriggerDesc()
Returns the on-delete statement specification.

Returns:
descriptor for creating a an on-delete statement

setOnTriggerDesc

public void setOnTriggerDesc(OnTriggerDesc onTriggerDesc)
Sets the on-delete statement specification.

Parameters:
onTriggerDesc - descriptor for creating an on-delete statement

getFilterExprRootNode

public ExprNode getFilterExprRootNode()
Gets the where clause.

Returns:
where clause or null if none

setFilterExprRootNode

public void setFilterExprRootNode(ExprNode filterExprRootNode)
Sets the where clause or null if none

Parameters:
filterExprRootNode - where clause expression

isHasVariables

public boolean isHasVariables()
Returns true if a statement (or subquery sub-statements) use variables.

Returns:
indicator if variables are used

setHasVariables

public void setHasVariables(boolean hasVariables)
Sets the flag indicating the statement uses variables.

Parameters:
hasVariables - true if variables are used

getCreateVariableDesc

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

Returns:
create-variable info

setCreateVariableDesc

public void setCreateVariableDesc(CreateVariableDesc createVariableDesc)
Sets the descriptor for create-variable statements, if this is one.

Parameters:
createVariableDesc - create-variable info

getRowLimitSpec

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

Returns:
row limit

setRowLimitSpec

public void setRowLimitSpec(RowLimitSpec rowLimitSpec)
Sets the row limit, or null if none.

Parameters:
rowLimitSpec - row limit

getAnnotations

public java.util.List<AnnotationDesc> getAnnotations()
Returns a list of annotation descriptors.

Returns:
annotation descriptors

setAnnotations

public void setAnnotations(java.util.List<AnnotationDesc> annotations)
Sets a list of annotation descriptors.

Parameters:
annotations - annotation descriptors

setUpdateDesc

public void setUpdateDesc(UpdateDesc updateDesc)
Sets the update specification.

Parameters:
updateDesc - update spec

getUpdateDesc

public UpdateDesc getUpdateDesc()
Returns the update spec.

Returns:
update spec

setExpressionNoAnnotations

public void setExpressionNoAnnotations(java.lang.String expressionNoAnnotations)
Sets the expression text without annotations.

Parameters:
expressionNoAnnotations - text

getExpressionNoAnnotations

public java.lang.String getExpressionNoAnnotations()
Returns the expression text without annotations.

Returns:
expressionNoAnnotations text

getMatchRecognizeSpec

public MatchRecognizeSpec getMatchRecognizeSpec()
Returns the match recognize spec.

Returns:
spec

setMatchRecognizeSpec

public void setMatchRecognizeSpec(MatchRecognizeSpec matchRecognizeSpec)
Sets the match recognize spec

Parameters:
matchRecognizeSpec - spec

setReferencedVariables

public void setReferencedVariables(java.util.Set<java.lang.String> referencedVariables)
Set variables referenced

Parameters:
referencedVariables - vars

getReferencedVariables

public java.util.Set<java.lang.String> getReferencedVariables()
Returns variables referenced

Returns:
vars

getCreateIndexDesc

public CreateIndexDesc getCreateIndexDesc()
Returns create-index if any.

Returns:
index create

setCreateIndexDesc

public void setCreateIndexDesc(CreateIndexDesc createIndexDesc)
Set create-index if any.

Parameters:
createIndexDesc - index create

getCreateSchemaDesc

public CreateSchemaDesc getCreateSchemaDesc()

setCreateSchemaDesc

public void setCreateSchemaDesc(CreateSchemaDesc createSchemaDesc)

getForClauseSpec

public ForClauseSpec getForClauseSpec()

setForClauseSpec

public void setForClauseSpec(ForClauseSpec forClauseSpec)

getSqlParameters

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

setSqlParameters

public void setSqlParameters(java.util.Map<java.lang.Integer,java.util.List<ExprNode>> sqlParameters)

getSubstitutionParameters

public java.util.List<ExprSubstitutionNode> getSubstitutionParameters()

setSubstitutionParameters

public void setSubstitutionParameters(java.util.List<ExprSubstitutionNode> substitutionParameters)

getExpressionDeclDesc

public ExpressionDeclDesc getExpressionDeclDesc()

setExpressionDeclDesc

public void setExpressionDeclDesc(ExpressionDeclDesc expressionDeclDesc)

getCreateContextDesc

public CreateContextDesc getCreateContextDesc()

setCreateContextDesc

public void setCreateContextDesc(CreateContextDesc createContextDesc)

getOptionalContextName

public java.lang.String getOptionalContextName()

setOptionalContextName

public void setOptionalContextName(java.lang.String optionalContextName)

getScriptExpressions

public java.util.List<ExpressionScriptProvided> getScriptExpressions()

setScriptExpressions

public void setScriptExpressions(java.util.List<ExpressionScriptProvided> scriptExpressions)

getCreateDataFlowDesc

public CreateDataFlowDesc getCreateDataFlowDesc()

setCreateDataFlowDesc

public void setCreateDataFlowDesc(CreateDataFlowDesc createDataFlowDesc)

getCreateExpressionDesc

public CreateExpressionDesc getCreateExpressionDesc()

setCreateExpressionDesc

public void setCreateExpressionDesc(CreateExpressionDesc createExpressionDesc)

getFireAndForgetSpec

public FireAndForgetSpec getFireAndForgetSpec()

setFireAndForgetSpec

public void setFireAndForgetSpec(FireAndForgetSpec fireAndForgetSpec)

getIntoTableSpec

public IntoTableSpec getIntoTableSpec()

setIntoTableSpec

public void setIntoTableSpec(IntoTableSpec intoTableSpec)

getTableExpressions

public java.util.List<ExprTableAccessNode> getTableExpressions()

setTableExpressions

public void setTableExpressions(java.util.List<ExprTableAccessNode> tableExpressions)

getCreateTableDesc

public CreateTableDesc getCreateTableDesc()

setCreateTableDesc

public void setCreateTableDesc(CreateTableDesc createTableDesc)

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