Class OnUpdateClause
java.lang.Object
com.espertech.esper.common.client.soda.OnClause
com.espertech.esper.common.client.soda.OnUpdateClause
- All Implemented Interfaces:
Serializable
A clause to update a named window based on a triggering event arriving and correlated to the named window events to be updated.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAssignment
(Expression expression) Adds a variable to set to the clause.static OnUpdateClause
Creates an on-update clause.Returns the list of variable assignments.Returns the as-provided name for the named window.Returns the name of the named window to update.void
setAssignments
(List<Assignment> assignments) Sets a list of variable assignments.void
setOptionalAsName
(String optionalAsName) Sets the as-provided for the named window.void
setWindowName
(String windowName) Sets the name of the named window.void
toEPL
(StringWriter writer) Renders the clause in textual representation.Methods inherited from class com.espertech.esper.common.client.soda.OnClause
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
-
Constructor Details
-
OnUpdateClause
public OnUpdateClause()Ctor. -
OnUpdateClause
Ctor.- Parameters:
windowName
- is the named window nameoptionalAsName
- is the as-provided name of the named window
-
-
Method Details
-
create
Creates an on-update clause.- Parameters:
windowName
- is the named window nameoptionalAsName
- is the optional as-provided name- Returns:
- on-update clause without assignments
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output to
-
getWindowName
Returns the name of the named window to update.- Returns:
- named window name
-
setWindowName
Sets the name of the named window.- Parameters:
windowName
- window name
-
getOptionalAsName
Returns the as-provided name for the named window.- Returns:
- name or null
-
setOptionalAsName
Sets the as-provided for the named window.- Parameters:
optionalAsName
- name to set for window
-
addAssignment
Adds a variable to set to the clause.- Parameters:
expression
- expression providing the new variable value- Returns:
- clause
-
getAssignments
Returns the list of variable assignments.- Returns:
- pair of variable name and expression
-
setAssignments
Sets a list of variable assignments.- Parameters:
assignments
- list of pairs of variable name and expression
-