public class OnMergeClause extends OnClause
Constructor and Description |
---|
OnMergeClause()
Ctor.
|
OnMergeClause(String windowName,
String optionalAsName,
List<OnMergeMatchItem> matchItems)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
OnMergeClause |
addAction(OnMergeMatchItem action)
Add a new action to the list of actions.
|
static OnMergeClause |
create(String windowName,
String optionalAsName,
List<OnMergeMatchItem> matchItems)
Creates an on-update clause.
|
List<OnMergeMatchItem> |
getMatchItems()
Returns all actions.
|
String |
getOptionalAsName()
Returns the as-provided name for the named window.
|
String |
getWindowName()
Returns the name of the named window to update.
|
void |
setMatchItems(List<OnMergeMatchItem> matchItems)
Sets all actions.
|
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,
Expression optionalWhereClause,
EPStatementFormatter formatter)
Renders the clause in textual representation.
|
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
public OnMergeClause()
public OnMergeClause(String windowName, String optionalAsName, List<OnMergeMatchItem> matchItems)
windowName
- is the named window nameoptionalAsName
- is the as-provided name of the named windowmatchItems
- is the matched and non-matched action itemspublic static OnMergeClause create(String windowName, String optionalAsName, List<OnMergeMatchItem> matchItems)
windowName
- is the named window nameoptionalAsName
- is the optional as-provided namematchItems
- is the matched and non-matched action itemspublic void toEPL(StringWriter writer, Expression optionalWhereClause, EPStatementFormatter formatter)
writer
- to output tooptionalWhereClause
- where clause if present, or nullformatter
- for newline-whitespace formattingpublic String getWindowName()
public void setWindowName(String windowName)
windowName
- window namepublic String getOptionalAsName()
public void setOptionalAsName(String optionalAsName)
optionalAsName
- name to set for windowpublic OnMergeClause addAction(OnMergeMatchItem action)
action
- to addpublic List<OnMergeMatchItem> getMatchItems()
public void setMatchItems(List<OnMergeMatchItem> matchItems)
matchItems
- to set