Click or drag to resize

EPStatementObjectModel Class

Object model of an EPL statement.

Applications can create an object model by instantiating this class and then setting the various clauses. When done, use the administrative interface to deploy from the model.

Use the toEPL method to generate a textual EPL from an object model.

Minimally, and EPL statement consists of the select-clause and the where-clause.These are represented by { @link SelectClause } and respectively.

Here is a short example that create a simple EPL statement such as "select page, responseTime from PageLoad" :

                        EPStatementObjectModel model = new EPStatementObjectModel();
                        model.setSelectClause(SelectClause.create("page", "responseTime"));
                        model.setPropertyEvalSpec(FromClause.create(FilterStream.create("PageLoad")));
                    

The select-clause and from-clause must be set for the statement object model to be useable by the administrative API.All other clauses a optional.

Please see the documentation set for further examples.

Inheritance Hierarchy
SystemObject
  com.espertech.esper.common.client.sodaEPStatementObjectModel

Namespace:  com.espertech.esper.common.client.soda
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
[SerializableAttribute]
public class EPStatementObjectModel

The EPStatementObjectModel type exposes the following members.

Constructors
  NameDescription
Public methodEPStatementObjectModel
Initializes a new instance of the EPStatementObjectModel class
Top
Properties
  NameDescription
Public propertyAnnotations
Returns annotations.
Public propertyContextName
Returns the context name if context dimensions apply to statement.
Public propertyCreateContext
Returns the create-context clause.
Public propertyCreateDataFlow
Returns the "create dataflow" part, if present.
Public propertyCreateExpression
Returns the create-expression clause, if any
Public propertyCreateIndex
Returns create-index clause.
Public propertyCreateSchema
Returns the create-schema clause.
Public propertyCreateTable
Returns the create-table clause if present or null if not present
Public propertyCreateVariable
Returns the create-variable clause if this is a statement creating a variable, or null if not.
Public propertyCreateWindow
Returns the create-window clause for creating named windows, or null if this statement does not create a named window.
Public propertyExpressionDeclarations
Returns the expression declarations, if any.
Public propertyFireAndForgetClause
Returns fire-and-forget (on-demand) query information for FAF select, insert, update and delete.
Public propertyForClause
Returns the for-clause.
Public propertyFromClause
Specify a from-clause.
Public propertyGroupByClause
Return the group-by-clause, or null to indicate that the clause is absent.
Public propertyHavingClause
Return the having-clause, or null to indicate that the clause is absent.
Public propertyInsertInto
Return the insert-into-clause, or null to indicate that the clause is absent.
Public propertyIntoTableClause
Returns the into-table clause, or null if none found.
Public propertyMatchRecognizeClause
Match-recognize clause.
Public propertyOnExpr
Returns the on-delete clause for deleting from named windows, or null if this statement does not delete from a named window
Public propertyOrderByClause
Return the order-by-clause, or null to indicate that the clause is absent.
Public propertyOutputLimitClause
Return the output-rate-limiting-clause, or null to indicate that the clause is absent.
Public propertyRowLimitClause
Returns the row limit specification, or null if none supplied.
Public propertyScriptExpressions
Returns the scripts defined.
Public propertySelectClause
Return the select-clause.
Public propertyTreeObjectName
Returns the internal expression id assigned for tools to identify the expression.
Public propertyUpdateClause
Returns the update specification.
Public propertyWhereClause
Return the where-clause, or null to indicate that the clause is absent.
Top
Methods
  NameDescription
Public methodSelect
Specify a select-clause.
Public methodSetFrom
Specify a from-clause.
Public methodSetGroupBy
Specify a group-by-clause.
Public methodSetHaving
Specify a having-clause.
Public methodSetInsertInto
Specify an insert-into-clause.
Public methodSetOrderBy
Specify an order-by-clause.
Public methodSetOutputLimit
Specify an output-rate-limiting-clause.
Public methodSetWhere
Specify a where-clause.
Public methodToEPL
Renders the object model in it's EPL syntax textual representation.
Public methodToEPL(TextWriter)
Rendering using the provided writer.
Public methodToEPL(EPStatementFormatter)
Rendering using the provided formatter.
Public methodToEPL(EPStatementFormatter, TextWriter)
Renders the object model in it's EPL syntax textual representation, using a whitespace-formatter as provided.
Top
See Also