|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.CreateWindowClause
public class CreateWindowClause
Create a named window, defining the parameter of the named window such as window name and data window view name(s).
Constructor Summary | |
---|---|
CreateWindowClause()
Ctor. |
|
CreateWindowClause(java.lang.String windowName,
java.util.List<View> views)
Ctor. |
|
CreateWindowClause(java.lang.String windowName,
View[] viewArr)
Ctor. |
Method Summary | |
---|---|
void |
addColumn(SchemaColumnDesc col)
Adds a column for use when create-table syntax is used to define the named window type. |
CreateWindowClause |
addView(java.lang.String namespace,
java.lang.String name)
Adds an un-parameterized view to the named window. |
CreateWindowClause |
addView(java.lang.String namespace,
java.lang.String name,
Expression... parameters)
Adds a parameterized view to the named window. |
CreateWindowClause |
addView(java.lang.String namespace,
java.lang.String name,
java.util.List<Expression> parameters)
Adds a parameterized view to the named window. |
static CreateWindowClause |
create(java.lang.String windowName,
View... views)
Creates a clause to create a named window. |
static CreateWindowClause |
create(java.lang.String windowName,
View view)
Creates a clause to create a named window. |
java.util.List<SchemaColumnDesc> |
getColumns()
Returns all columns for use when create-table syntax is used to define the named window type. |
boolean |
getInsert()
Returns true if inserting from another named window, false if not. |
Expression |
getInsertWhereClause()
Filter expression for inserting from another named window, or null if not inserting from another named window. |
java.util.List<View> |
getViews()
Returns the views onto the named window. |
java.lang.String |
getWindowName()
Returns the window name. |
CreateWindowClause |
insert(boolean insert)
Sets flag indicating that an insert from another named window should take place at the time of window creation. |
CreateWindowClause |
insertWhereClause(Expression insertWhereClause)
Sets the filter expression for inserting from another named window |
boolean |
isInsert()
Returns true if inserting from another named window, false if not. |
void |
setColumns(java.util.List<SchemaColumnDesc> columns)
Sets the columns for use when create-table syntax is used to define the named window type. |
void |
setInsert(boolean insert)
Sets flag indicating that an insert from another named window should take place at the time of window creation. |
void |
setInsertWhereClause(Expression insertWhereClause)
Sets the filter expression for inserting from another named window |
void |
setViews(java.util.List<View> views)
Sets the views onto the named window. |
void |
setWindowName(java.lang.String windowName)
Sets the window name. |
void |
toEPL(java.io.StringWriter writer)
Renders the clause in textual representation. |
void |
toEPLCreateTablePart(java.io.StringWriter writer)
To-EPL for create-table syntax. |
void |
toEPLInsertPart(java.io.StringWriter writer)
Renders the clause in textual representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateWindowClause()
public CreateWindowClause(java.lang.String windowName, View[] viewArr)
windowName
- is the name of the window to createviewArr
- is the list of data window viewspublic CreateWindowClause(java.lang.String windowName, java.util.List<View> views)
windowName
- is the name of the window to createviews
- is a list of data window viewsMethod Detail |
---|
public static CreateWindowClause create(java.lang.String windowName, View view)
windowName
- is the name of the named windowview
- is a data window view
public static CreateWindowClause create(java.lang.String windowName, View... views)
windowName
- is the name of the named windowviews
- is the data window views
public CreateWindowClause addView(java.lang.String namespace, java.lang.String name)
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length window
public CreateWindowClause addView(java.lang.String namespace, java.lang.String name, java.util.List<Expression> parameters)
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length windowparameters
- is a list of view parameters
public CreateWindowClause addView(java.lang.String namespace, java.lang.String name, Expression... parameters)
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length windowparameters
- is a list of view parameters
public void toEPL(java.io.StringWriter writer)
writer
- to output topublic void toEPLInsertPart(java.io.StringWriter writer)
writer
- to output topublic java.lang.String getWindowName()
public void setWindowName(java.lang.String windowName)
windowName
- is the name to setpublic java.util.List<View> getViews()
public boolean isInsert()
public boolean getInsert()
public Expression getInsertWhereClause()
public CreateWindowClause insert(boolean insert)
insert
- true for insert from another named window
public void setInsert(boolean insert)
insert
- true for insert from another named windowpublic CreateWindowClause insertWhereClause(Expression insertWhereClause)
insertWhereClause
- filter expression
public void setInsertWhereClause(Expression insertWhereClause)
insertWhereClause
- filter expressionpublic void setViews(java.util.List<View> views)
views
- to setpublic java.util.List<SchemaColumnDesc> getColumns()
public void addColumn(SchemaColumnDesc col)
col
- column to addpublic void setColumns(java.util.List<SchemaColumnDesc> columns)
columns
- to setpublic void toEPLCreateTablePart(java.io.StringWriter writer)
writer
- to use
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |