Class OnMergeMatchItem
java.lang.Object
com.espertech.esper.common.client.soda.OnClause
com.espertech.esper.common.client.soda.OnMergeMatchItem
- All Implemented Interfaces:
Serializable
As part of on-merge, this represents a single "matched" or "not matched" entry.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.OnMergeMatchItem
(boolean matched, Expression optionalCondition, List<OnMergeMatchedAction> actions) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns all actions.Returns the condition to apply or null if none is provided.boolean
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.Methods inherited from class com.espertech.esper.common.client.soda.OnClause
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
-
Constructor Details
-
OnMergeMatchItem
public OnMergeMatchItem()Ctor. -
OnMergeMatchItem
public OnMergeMatchItem(boolean matched, Expression optionalCondition, List<OnMergeMatchedAction> actions) Ctor.- Parameters:
matched
- true for matched, false for not-matchedoptionalCondition
- an optional additional filteractions
- one or more actions to take
-
-
Method Details
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output toformatter
- for newline-whitespace formatting
-
isMatched
public boolean isMatched()Returns true for matched, and false for not-matched.- Returns:
- matched or not-matched indicator
-
setMatched
public void setMatched(boolean matched) Set to true for matched, and false for not-matched.- Parameters:
matched
- matched or not-matched indicator
-
getOptionalCondition
Returns the condition to apply or null if none is provided.- Returns:
- condition
-
setOptionalCondition
Sets the condition to apply or null if none is provided.- Parameters:
optionalCondition
- condition to apply or null to have no condition
-
getActions
Returns all actions.- Returns:
- actions
-
setActions
Sets all actions.- Parameters:
actions
- to set
-