Class OnUpdateClause

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

public class OnUpdateClause extends OnClause
A clause to update a named window based on a triggering event arriving and correlated to the named window events to be updated.
See Also:
  • Constructor Details

    • OnUpdateClause

      public OnUpdateClause()
      Ctor.
    • OnUpdateClause

      public OnUpdateClause(String windowName, String optionalAsName)
      Ctor.
      Parameters:
      windowName - is the named window name
      optionalAsName - is the as-provided name of the named window
  • Method Details

    • create

      public static OnUpdateClause create(String windowName, String optionalAsName)
      Creates an on-update clause.
      Parameters:
      windowName - is the named window name
      optionalAsName - is the optional as-provided name
      Returns:
      on-update clause without assignments
    • toEPL

      public void toEPL(StringWriter writer)
      Renders the clause in textual representation.
      Parameters:
      writer - to output to
    • getWindowName

      public String getWindowName()
      Returns the name of the named window to update.
      Returns:
      named window name
    • setWindowName

      public void setWindowName(String windowName)
      Sets the name of the named window.
      Parameters:
      windowName - window name
    • getOptionalAsName

      public String getOptionalAsName()
      Returns the as-provided name for the named window.
      Returns:
      name or null
    • setOptionalAsName

      public void setOptionalAsName(String optionalAsName)
      Sets the as-provided for the named window.
      Parameters:
      optionalAsName - name to set for window
    • addAssignment

      public OnUpdateClause addAssignment(Expression expression)
      Adds a variable to set to the clause.
      Parameters:
      expression - expression providing the new variable value
      Returns:
      clause
    • getAssignments

      public List<Assignment> getAssignments()
      Returns the list of variable assignments.
      Returns:
      pair of variable name and expression
    • setAssignments

      public void setAssignments(List<Assignment> assignments)
      Sets a list of variable assignments.
      Parameters:
      assignments - list of pairs of variable name and expression