Class CreateWindowClause
java.lang.Object
com.espertech.esper.common.client.soda.CreateWindowClause
- All Implemented Interfaces:
Serializable
Create a named window, defining the parameter of the named window such as window name and data window view name(s).
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.CreateWindowClause
(String windowName, View[] viewArr) Ctor.CreateWindowClause
(String windowName, List<View> views) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a column for use when create-table syntax is used to define the named window type.Adds an un-parameterized view to the named window.addView
(String name, Expression... parameters) Adds a parameterized view to the named window.Adds an un-parameterized view to the named window.addView
(String namespace, String name, Expression... parameters) Adds a parameterized view to the named window.addView
(String namespace, String name, List<Expression> parameters) Adds a parameterized view to the named window.addView
(String name, List<Expression> parameters) Adds a parameterized view to the named window.static CreateWindowClause
Creates a clause to create a named window.static CreateWindowClause
Creates a clause to create a named window.Returns the as-name.Returns all columns for use when create-table syntax is used to define the named window type.boolean
Returns true if inserting from another named window, false if not.Filter expression for inserting from another named window, or null if not inserting from another named window.getViews()
Returns the views onto the named window.Returns the window name.insert
(boolean insert) Sets flag indicating that an insert from another named window should take place at the time of window creation.insertWhereClause
(Expression insertWhereClause) Sets the filter expression for inserting from another named windowboolean
isInsert()
Returns true if inserting from another named window, false if not.boolean
Returns the retain-union flagsetAsEventTypeName
(String asEventTypeName) Sets the as-name.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 windowvoid
setRetainUnion
(boolean retainUnion) Sets the retain-union flagvoid
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.
-
Constructor Details
-
CreateWindowClause
public CreateWindowClause()Ctor. -
CreateWindowClause
Ctor.- Parameters:
windowName
- is the name of the window to createviewArr
- is the list of data window views
-
CreateWindowClause
Ctor.- Parameters:
windowName
- is the name of the window to createviews
- is a list of data window views
-
-
Method Details
-
create
Creates a clause to create a named window.- Parameters:
windowName
- is the name of the named windowview
- is a data window view- Returns:
- create window clause
-
create
Creates a clause to create a named window.- Parameters:
windowName
- is the name of the named windowviews
- is the data window views- Returns:
- create window clause
-
addView
Adds an un-parameterized view to the named window.- Parameters:
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length window- Returns:
- named window creation clause
-
addView
Adds an un-parameterized view to the named window.- Parameters:
name
- is the view name, for example "length" for a length window- Returns:
- named window creation clause
-
addView
Adds a parameterized view to the named window.- 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- Returns:
- named window creation clause
-
addView
Adds a parameterized view to the named window.- Parameters:
name
- is the view name, for example "length" for a length windowparameters
- is a list of view parameters- Returns:
- named window creation clause
-
addView
Adds a parameterized view to the named window.- 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- Returns:
- named window creation clause
-
addView
Adds a parameterized view to the named window.- Parameters:
name
- is the view name, for example "length" for a length windowparameters
- is a list of view parameters- Returns:
- named window creation clause
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output to
-
toEPLInsertPart
Renders the clause in textual representation.- Parameters:
writer
- to output to
-
getWindowName
Returns the window name.- Returns:
- window name
-
setWindowName
Sets the window name.- Parameters:
windowName
- is the name to set
-
getViews
Returns the views onto the named window.- Returns:
- named window data views
-
isInsert
public boolean isInsert()Returns true if inserting from another named window, false if not.- Returns:
- insert from named window
-
getInsert
public boolean getInsert()Returns true if inserting from another named window, false if not.- Returns:
- insert from named window
-
getInsertWhereClause
Filter expression for inserting from another named window, or null if not inserting from another named window.- Returns:
- filter expression
-
insert
Sets flag indicating that an insert from another named window should take place at the time of window creation.- Parameters:
insert
- true for insert from another named window- Returns:
- clause
-
setInsert
public void setInsert(boolean insert) Sets flag indicating that an insert from another named window should take place at the time of window creation.- Parameters:
insert
- true for insert from another named window
-
insertWhereClause
Sets the filter expression for inserting from another named window- Parameters:
insertWhereClause
- filter expression- Returns:
- create window clause
-
setInsertWhereClause
Sets the filter expression for inserting from another named window- Parameters:
insertWhereClause
- filter expression
-
setViews
Sets the views onto the named window.- Parameters:
views
- to set
-
getColumns
Returns all columns for use when create-table syntax is used to define the named window type.- Returns:
- columns
-
addColumn
Adds a column for use when create-table syntax is used to define the named window type.- Parameters:
col
- column to add
-
setColumns
Sets the columns for use when create-table syntax is used to define the named window type.- Parameters:
columns
- to set
-
getAsEventTypeName
Returns the as-name.- Returns:
- as-name
-
setAsEventTypeName
Sets the as-name.- Parameters:
asEventTypeName
- as-name- Returns:
- itself
-
isRetainUnion
public boolean isRetainUnion()Returns the retain-union flag- Returns:
- indicator
-
setRetainUnion
public void setRetainUnion(boolean retainUnion) Sets the retain-union flag- Parameters:
retainUnion
- indicator
-
toEPLCreateTablePart
To-EPL for create-table syntax.- Parameters:
writer
- to use
-