public class OnMergeMatchItem extends OnClause
Constructor and Description |
---|
OnMergeMatchItem()
Ctor.
|
OnMergeMatchItem(boolean matched,
Expression optionalCondition,
List<OnMergeMatchedAction> actions)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
List<OnMergeMatchedAction> |
getActions()
Returns all actions.
|
Expression |
getOptionalCondition()
Returns the condition to apply or null if none is provided.
|
boolean |
isMatched()
Returns true for matched, and false for not-matched.
|
void |
setActions(List<OnMergeMatchedAction> actions)
Sets all actions.
|
void |
setMatched(boolean matched)
Set to true for matched, and false for not-matched.
|
void |
setOptionalCondition(Expression optionalCondition)
Sets the condition to apply or null if none is provided.
|
void |
toEPL(StringWriter writer,
EPStatementFormatter formatter)
Renders the clause in textual representation.
|
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
public OnMergeMatchItem()
public OnMergeMatchItem(boolean matched, Expression optionalCondition, List<OnMergeMatchedAction> actions)
matched
- true for matched, false for not-matchedoptionalCondition
- an optional additional filteractions
- one or more actions to takepublic void toEPL(StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formattingpublic boolean isMatched()
public void setMatched(boolean matched)
matched
- matched or not-matched indicatorpublic Expression getOptionalCondition()
public void setOptionalCondition(Expression optionalCondition)
optionalCondition
- condition to apply or null to have no conditionpublic List<OnMergeMatchedAction> getActions()
public void setActions(List<OnMergeMatchedAction> actions)
actions
- to set