public class OnUpdateClause extends OnClause
Constructor and Description |
---|
OnUpdateClause()
Ctor.
|
OnUpdateClause(String windowName,
String optionalAsName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
OnUpdateClause |
addAssignment(Expression expression)
Adds a variable to set to the clause.
|
static OnUpdateClause |
create(String windowName,
String optionalAsName)
Creates an on-update clause.
|
List<Assignment> |
getAssignments()
Returns the list of variable assignments.
|
String |
getOptionalAsName()
Returns the as-provided name for the named window.
|
String |
getWindowName()
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.
|
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
public static OnUpdateClause create(String windowName, String optionalAsName)
windowName
- is the named window nameoptionalAsName
- is the optional as-provided namepublic void toEPL(StringWriter writer)
writer
- to output topublic String getWindowName()
public void setWindowName(String windowName)
windowName
- window namepublic String getOptionalAsName()
public void setOptionalAsName(String optionalAsName)
optionalAsName
- name to set for windowpublic OnUpdateClause addAssignment(Expression expression)
expression
- expression providing the new variable valuepublic List<Assignment> getAssignments()
public void setAssignments(List<Assignment> assignments)
assignments
- list of pairs of variable name and expression