com.espertech.esper.client.soda
Class OnMergeMatchItem

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

public class OnMergeMatchItem
extends OnClause

As part of on-merge, this represents a single "matched" or "not matched" entry.

See Also:
Serialized Form

Constructor Summary
OnMergeMatchItem()
          Ctor.
OnMergeMatchItem(boolean matched, Expression optionalCondition, java.util.List<OnMergeMatchedAction> actions)
          Ctor.
 
Method Summary
 java.util.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(java.util.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(java.io.StringWriter writer, EPStatementFormatter formatter)
          Renders the clause in textual representation.
 
Methods inherited from class com.espertech.esper.client.soda.OnClause
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnMergeMatchItem

public OnMergeMatchItem()
Ctor.


OnMergeMatchItem

public OnMergeMatchItem(boolean matched,
                        Expression optionalCondition,
                        java.util.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 Detail

toEPL

public void toEPL(java.io.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 java.util.List<OnMergeMatchedAction> getActions()
Returns all actions.

Returns:
actions

setActions

public void setActions(java.util.List<OnMergeMatchedAction> actions)
Sets all actions.

Parameters:
actions - to set

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com