![]() | EPStatementObjectModel Class |
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.
Namespace: com.espertech.esper.common.client.soda
[SerializableAttribute] public class EPStatementObjectModel
The EPStatementObjectModel type exposes the following members.
Name | Description | |
---|---|---|
![]() | EPStatementObjectModel | Initializes a new instance of the EPStatementObjectModel class |
Name | Description | |
---|---|---|
![]() | Annotations |
Returns annotations.
|
![]() | ContextName |
Returns the context name if context dimensions apply to statement.
|
![]() | CreateContext |
Returns the create-context clause.
|
![]() | CreateDataFlow |
Returns the "create dataflow" part, if present.
|
![]() | CreateExpression |
Returns the create-expression clause, if any
|
![]() | CreateIndex |
Returns create-index clause.
|
![]() | CreateSchema |
Returns the create-schema clause.
|
![]() | CreateTable |
Returns the create-table clause if present or null if not present
|
![]() | CreateVariable |
Returns the create-variable clause if this is a statement creating a variable, or null if not.
|
![]() | CreateWindow |
Returns the create-window clause for creating named windows, or null if this statement does not
create a named window.
|
![]() | ExpressionDeclarations |
Returns the expression declarations, if any.
|
![]() | FireAndForgetClause |
Returns fire-and-forget (on-demand) query information for FAF select, insert, update and delete.
|
![]() | ForClause |
Returns the for-clause.
|
![]() | FromClause |
Specify a from-clause.
|
![]() | GroupByClause |
Return the group-by-clause, or null to indicate that the clause is absent.
|
![]() | HavingClause |
Return the having-clause, or null to indicate that the clause is absent.
|
![]() | InsertInto |
Return the insert-into-clause, or null to indicate that the clause is absent.
|
![]() | IntoTableClause |
Returns the into-table clause, or null if none found.
|
![]() | MatchRecognizeClause |
Match-recognize clause.
|
![]() | OnExpr |
Returns the on-delete clause for deleting from named windows, or null if this statement
does not delete from a named window
|
![]() | OrderByClause |
Return the order-by-clause, or null to indicate that the clause is absent.
|
![]() | OutputLimitClause |
Return the output-rate-limiting-clause, or null to indicate that the clause is absent.
|
![]() | RowLimitClause |
Returns the row limit specification, or null if none supplied.
|
![]() | ScriptExpressions |
Returns the scripts defined.
|
![]() | SelectClause |
Return the select-clause.
|
![]() | TreeObjectName |
Returns the internal expression id assigned for tools to identify the expression.
|
![]() | UpdateClause |
Returns the update specification.
|
![]() | WhereClause |
Return the where-clause, or null to indicate that the clause is absent.
|
Name | Description | |
---|---|---|
![]() | Select |
Specify a select-clause.
|
![]() | SetFrom |
Specify a from-clause.
|
![]() | SetGroupBy |
Specify a group-by-clause.
|
![]() | SetHaving |
Specify a having-clause.
|
![]() | SetInsertInto |
Specify an insert-into-clause.
|
![]() | SetOrderBy |
Specify an order-by-clause.
|
![]() | SetOutputLimit |
Specify an output-rate-limiting-clause.
|
![]() | SetWhere |
Specify a where-clause.
|
![]() | ToEPL |
Renders the object model in it's EPL syntax textual representation.
|
![]() | ToEPL(TextWriter) |
Rendering using the provided writer.
|
![]() | ToEPL(EPStatementFormatter) |
Rendering using the provided formatter.
|
![]() | ToEPL(EPStatementFormatter, TextWriter) |
Renders the object model in it's EPL syntax textual representation, using a whitespace-formatter as provided.
|