public class CreateWindowClause
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CreateWindowClause()
Ctor.
|
CreateWindowClause(java.lang.String windowName,
java.util.List<View> views)
Ctor.
|
CreateWindowClause(java.lang.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(java.lang.String name)
Adds an un-parameterized view to the named window.
|
CreateWindowClause |
addView(java.lang.String name,
Expression... parameters)
Adds a parameterized view to the named window.
|
CreateWindowClause |
addView(java.lang.String name,
java.util.List<Expression> parameters)
Adds a parameterized view to the named window.
|
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.lang.String |
getAsEventTypeName()
Returns the as-name.
|
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.
|
boolean |
isRetainUnion()
Returns the retain-union flag
|
CreateWindowClause |
setAsEventTypeName(java.lang.String asEventTypeName)
Sets the as-name.
|
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 |
setRetainUnion(boolean retainUnion)
Sets the retain-union flag
|
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.
|
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 viewspublic static CreateWindowClause create(java.lang.String windowName, View view)
windowName
- is the name of the named windowview
- is a data window viewpublic static CreateWindowClause create(java.lang.String windowName, View... views)
windowName
- is the name of the named windowviews
- is the data window viewspublic 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 windowpublic CreateWindowClause addView(java.lang.String name)
name
- is the view name, for example "length" for a length windowpublic 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 parameterspublic CreateWindowClause addView(java.lang.String name, java.util.List<Expression> parameters)
name
- is the view name, for example "length" for a length windowparameters
- is a list of view parameterspublic 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 parameterspublic CreateWindowClause addView(java.lang.String name, Expression... parameters)
name
- is the view name, for example "length" for a length windowparameters
- is a list of view parameterspublic 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 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(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 java.lang.String getAsEventTypeName()
public CreateWindowClause setAsEventTypeName(java.lang.String asEventTypeName)
asEventTypeName
- as-namepublic boolean isRetainUnion()
public void setRetainUnion(boolean retainUnion)
retainUnion
- indicatorpublic void toEPLCreateTablePart(java.io.StringWriter writer)
writer
- to use