public class CreateWindowClause extends Object implements Serializable
Constructor and Description |
---|
CreateWindowClause()
Ctor.
|
CreateWindowClause(String windowName,
List<View> views)
Ctor.
|
CreateWindowClause(String windowName,
View[] viewArr)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(SchemaColumnDesc col)
Adds a column for use when create-table syntax is used to define the named window type.
|
CreateWindowClause |
addView(String name)
Adds an un-parameterized view to the named window.
|
CreateWindowClause |
addView(String name,
Expression... parameters)
Adds a parameterized view to the named window.
|
CreateWindowClause |
addView(String name,
List<Expression> parameters)
Adds a parameterized view to the named window.
|
CreateWindowClause |
addView(String namespace,
String name)
Adds an un-parameterized view to the named window.
|
CreateWindowClause |
addView(String namespace,
String name,
Expression... parameters)
Adds a parameterized view to the named window.
|
CreateWindowClause |
addView(String namespace,
String name,
List<Expression> parameters)
Adds a parameterized view to the named window.
|
static CreateWindowClause |
create(String windowName,
View... views)
Creates a clause to create a named window.
|
static CreateWindowClause |
create(String windowName,
View view)
Creates a clause to create a named window.
|
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.
|
List<View> |
getViews()
Returns the views onto the named window.
|
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(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(List<View> views)
Sets the views onto the named window.
|
void |
setWindowName(String windowName)
Sets the window name.
|
void |
toEPL(StringWriter writer)
Renders the clause in textual representation.
|
void |
toEPLCreateTablePart(StringWriter writer)
To-EPL for create-table syntax.
|
void |
toEPLInsertPart(StringWriter writer)
Renders the clause in textual representation.
|
public CreateWindowClause()
public CreateWindowClause(String windowName, View[] viewArr)
windowName
- is the name of the window to createviewArr
- is the list of data window viewspublic static CreateWindowClause create(String windowName, View view)
windowName
- is the name of the named windowview
- is a data window viewpublic static CreateWindowClause create(String windowName, View... views)
windowName
- is the name of the named windowviews
- is the data window viewspublic CreateWindowClause addView(String namespace, String name)
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length windowpublic CreateWindowClause addView(String name)
name
- is the view name, for example "length" for a length windowpublic CreateWindowClause addView(String namespace, String name, 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 parameterspublic CreateWindowClause addView(String name, List<Expression> parameters)
name
- is the view name, for example "length" for a length windowparameters
- is a list of view parameterspublic CreateWindowClause addView(String namespace, 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 parameterspublic CreateWindowClause addView(String name, Expression... parameters)
name
- is the view name, for example "length" for a length windowparameters
- is a list of view parameterspublic void toEPL(StringWriter writer)
writer
- to output topublic void toEPLInsertPart(StringWriter writer)
writer
- to output topublic String getWindowName()
public void setWindowName(String windowName)
windowName
- is the name to setpublic List<View> getViews()
public boolean isInsert()
public boolean getInsert()
public Expression getInsertWhereClause()
public CreateWindowClause insert(boolean insert)
insert
- true for insert from another named windowpublic void setInsert(boolean insert)
insert
- true for insert from another named windowpublic CreateWindowClause insertWhereClause(Expression insertWhereClause)
insertWhereClause
- filter expressionpublic void setInsertWhereClause(Expression insertWhereClause)
insertWhereClause
- filter expressionpublic void setViews(List<View> views)
views
- to setpublic List<SchemaColumnDesc> getColumns()
public void addColumn(SchemaColumnDesc col)
col
- column to addpublic void setColumns(List<SchemaColumnDesc> columns)
columns
- to setpublic void toEPLCreateTablePart(StringWriter writer)
writer
- to use