public class OnMergeClause extends OnClause
Constructor and Description |
---|
OnMergeClause()
Ctor.
|
OnMergeClause(java.lang.String windowName,
java.lang.String optionalAsName,
java.util.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(java.lang.String windowName,
java.lang.String optionalAsName,
java.util.List<OnMergeMatchItem> matchItems)
Creates an on-update clause.
|
OnMergeMatchedInsertAction |
getInsertNoMatch()
Reutrns an optional insert to executed without a match-clause.
|
java.util.List<OnMergeMatchItem> |
getMatchItems()
Returns all actions.
|
java.lang.String |
getOptionalAsName()
Returns the as-provided name for the named window.
|
java.lang.String |
getWindowName()
Returns the name of the named window to update.
|
void |
setInsertNoMatch(OnMergeMatchedInsertAction insertNoMatch)
Sets an optional insert to executed without a match-clause.
|
void |
setMatchItems(java.util.List<OnMergeMatchItem> matchItems)
Sets all actions.
|
void |
setOptionalAsName(java.lang.String optionalAsName)
Sets the as-provided for the named window.
|
void |
setWindowName(java.lang.String windowName)
Sets the name of the named window.
|
void |
toEPL(java.io.StringWriter writer,
Expression optionalWhereClause,
EPStatementFormatter formatter)
Renders the clause in textual representation.
|
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
public OnMergeClause()
public OnMergeClause(java.lang.String windowName, java.lang.String optionalAsName, java.util.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(java.lang.String windowName, java.lang.String optionalAsName, java.util.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(java.io.StringWriter writer, Expression optionalWhereClause, EPStatementFormatter formatter)
writer
- to output tooptionalWhereClause
- where clause if present, or nullformatter
- for newline-whitespace formattingpublic java.lang.String getWindowName()
public void setWindowName(java.lang.String windowName)
windowName
- window namepublic java.lang.String getOptionalAsName()
public void setOptionalAsName(java.lang.String optionalAsName)
optionalAsName
- name to set for windowpublic OnMergeClause addAction(OnMergeMatchItem action)
action
- to addpublic java.util.List<OnMergeMatchItem> getMatchItems()
public void setMatchItems(java.util.List<OnMergeMatchItem> matchItems)
matchItems
- to setpublic void setInsertNoMatch(OnMergeMatchedInsertAction insertNoMatch)
insertNoMatch
- insertpublic OnMergeMatchedInsertAction getInsertNoMatch()