public class CreateWindowDesc extends Object implements MetaDefItem, Serializable
Constructor and Description |
---|
CreateWindowDesc(String windowName,
List<ViewSpec> viewSpecs,
StreamSpecOptions streamSpecOptions,
boolean insert,
ExprNode insertFilter,
List<ColumnDesc> columns,
String asEventTypeName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAsEventTypeName() |
List<ColumnDesc> |
getColumns()
Returns column names and types.
|
ExprNode |
getInsertFilter()
Returns the expression to filter insert-from events, or null if none supplied.
|
String |
getInsertFromWindow()
Returns the window name to insert from.
|
StreamSpecOptions |
getStreamSpecOptions()
Returns the options for the stream such as unidirectional, retain-union etc.
|
List<ViewSpec> |
getViewSpecs()
Returns the view specifications.
|
String |
getWindowName()
Returns the window name.
|
boolean |
isInsert()
Returns true for insert-from.
|
void |
setInsertFilter(ExprNode insertFilter)
Sets the filter expression to use to apply
|
void |
setInsertFromWindow(String insertFromWindow)
Sets the source named window if inserting from another named window.
|
public CreateWindowDesc(String windowName, List<ViewSpec> viewSpecs, StreamSpecOptions streamSpecOptions, boolean insert, ExprNode insertFilter, List<ColumnDesc> columns, String asEventTypeName)
windowName
- the window nameviewSpecs
- the view definitionsinsert
- true for insert-infoinsertFilter
- optional filter expressionstreamSpecOptions
- options such as retain-union etccolumns
- list of columns, if using column syntaxasEventTypeName
- as-typepublic String getWindowName()
public List<ViewSpec> getViewSpecs()
public boolean isInsert()
public ExprNode getInsertFilter()
public String getInsertFromWindow()
public void setInsertFilter(ExprNode insertFilter)
insertFilter
- filterpublic void setInsertFromWindow(String insertFromWindow)
insertFromWindow
- source named windowpublic StreamSpecOptions getStreamSpecOptions()
public List<ColumnDesc> getColumns()
public String getAsEventTypeName()