Class OnMergeMatchItem

java.lang.Object
com.espertech.esper.common.client.soda.OnClause
com.espertech.esper.common.client.soda.OnMergeMatchItem
All Implemented Interfaces:
Serializable

public class OnMergeMatchItem extends OnClause
As part of on-merge, this represents a single "matched" or "not matched" entry.
See Also:
  • 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-matched
      optionalCondition - an optional additional filter
      actions - one or more actions to take
  • Method Details

    • toEPL

      public void toEPL(StringWriter writer, EPStatementFormatter formatter)
      Renders the clause in textual representation.
      Parameters:
      writer - to output to
      formatter - 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

      public Expression getOptionalCondition()
      Returns the condition to apply or null if none is provided.
      Returns:
      condition
    • setOptionalCondition

      public void setOptionalCondition(Expression optionalCondition)
      Sets the condition to apply or null if none is provided.
      Parameters:
      optionalCondition - condition to apply or null to have no condition
    • getActions

      public List<OnMergeMatchedAction> getActions()
      Returns all actions.
      Returns:
      actions
    • setActions

      public void setActions(List<OnMergeMatchedAction> actions)
      Sets all actions.
      Parameters:
      actions - to set