Class ForClauseItem

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

public class ForClauseItem extends Object implements Serializable
An item in a for-clause for controlling delivery of result events to listeners and subscribers.
See Also:
  • Constructor Details

    • ForClauseItem

      public ForClauseItem()
      Ctor.

      Must set a keyword and optionally add expressions.

    • ForClauseItem

      public ForClauseItem(ForClauseKeyword keyword)
      Ctor.
      Parameters:
      keyword - the delivery keyword
  • Method Details

    • create

      public static ForClauseItem create(ForClauseKeyword keyword)
      Creates a for-clause with no expressions.
      Parameters:
      keyword - keyword to use
      Returns:
      for-clause
    • getKeyword

      public ForClauseKeyword getKeyword()
      Returns the for-clause keyword.
      Returns:
      keyword
    • setKeyword

      public void setKeyword(ForClauseKeyword keyword)
      Sets the for-clause keyword.
      Parameters:
      keyword - to set
    • getExpressions

      public List<Expression> getExpressions()
      Returns for-clause expressions.
      Returns:
      expressions
    • setExpressions

      public void setExpressions(List<Expression> expressions)
      Sets for-clause expressions.
      Parameters:
      expressions - expressions to set
    • toEPL

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