Class OnSelectClause

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

public class OnSelectClause extends OnClause
A clause to delete from a named window based on a triggering event arriving and correlated to the named window events to be deleted.
See Also:
  • Constructor Details

    • OnSelectClause

      public OnSelectClause()
      Ctor.
    • OnSelectClause

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

    • create

      public static OnSelectClause create(String windowName, String optionalAsName)
      Creates an on-select clause.
      Parameters:
      windowName - is the named window name
      optionalAsName - is the optional name
      Returns:
      on-select clause
    • 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 delete from.
      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
    • setOptionalAsName

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

      public boolean isDeleteAndSelect()
      Returns indicator whether select-and-delete or just select
      Returns:
      indicator
    • setDeleteAndSelect

      public void setDeleteAndSelect(boolean deleteAndSelect)
      Sets indicator whether select-and-delete or just select
      Parameters:
      deleteAndSelect - indicator