com.espertech.esper.client.soda
Class OnMergeMatchedUpdateAction

java.lang.Object
  extended by com.espertech.esper.client.soda.OnMergeMatchedUpdateAction
All Implemented Interfaces:
OnMergeMatchedAction, java.io.Serializable

public class OnMergeMatchedUpdateAction
extends java.lang.Object
implements OnMergeMatchedAction

For use with on-merge clauses, updates rows in a named window if matching rows are found.

See Also:
Serialized Form

Constructor Summary
OnMergeMatchedUpdateAction()
          Ctor.
OnMergeMatchedUpdateAction(java.util.List<Assignment> assignments, Expression whereClause)
          Ctor.
 
Method Summary
 java.util.List<Assignment> getAssignments()
          Returns the assignments to execute against any rows found in a named window
 Expression getWhereClause()
          Returns the action condition, or null if undefined.
 void setAssignments(java.util.List<Assignment> assignments)
          Sets the assignments to execute against any rows found in a named window
 void setWhereClause(Expression whereClause)
          Sets the action condition, or null if undefined.
 void toEPL(java.io.StringWriter writer)
          Render to EPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnMergeMatchedUpdateAction

public OnMergeMatchedUpdateAction()
Ctor.


OnMergeMatchedUpdateAction

public OnMergeMatchedUpdateAction(java.util.List<Assignment> assignments,
                                  Expression whereClause)
Ctor.

Parameters:
assignments - assignments of values to columns
whereClause - optional condition or null
Method Detail

getWhereClause

public Expression getWhereClause()
Returns the action condition, or null if undefined.

Returns:
condition

setWhereClause

public void setWhereClause(Expression whereClause)
Sets the action condition, or null if undefined.

Parameters:
whereClause - to set, or null to remove the condition

getAssignments

public java.util.List<Assignment> getAssignments()
Returns the assignments to execute against any rows found in a named window

Returns:
assignments

setAssignments

public void setAssignments(java.util.List<Assignment> assignments)
Sets the assignments to execute against any rows found in a named window

Parameters:
assignments - to set

toEPL

public void toEPL(java.io.StringWriter writer)
Description copied from interface: OnMergeMatchedAction
Render to EPL.

Specified by:
toEPL in interface OnMergeMatchedAction
Parameters:
writer - to render to

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