Class SelectClauseExpression

java.lang.Object
com.espertech.esper.common.client.soda.SelectClauseExpression
All Implemented Interfaces:
SelectClauseElement, Serializable

public class SelectClauseExpression extends Object implements SelectClauseElement
Part of a select-clause to describe individual select-clause expressions.
See Also:
  • Constructor Details

    • SelectClauseExpression

      public SelectClauseExpression()
      Ctor.
    • SelectClauseExpression

      public SelectClauseExpression(Expression expression)
      Ctor.
      Parameters:
      expression - is the selection expression
    • SelectClauseExpression

      public SelectClauseExpression(Expression expression, String optionalAsName)
      Ctor.
      Parameters:
      expression - is the selection expression
      optionalAsName - is the "as"-tag for the expression
  • Method Details

    • getExpression

      public Expression getExpression()
      Returns the selection expression.
      Returns:
      expression
    • setExpression

      public void setExpression(Expression expression)
      Sets the selection expression.
      Parameters:
      expression - is the selection expression
    • getAsName

      public String getAsName()
      Returns the optional "as"-name of the expression, or null if not defined
      Returns:
      tag or null for selection expression
    • setAsName

      public void setAsName(String asName)
      Sets the optional "as"-name of the expression, or null if not defined
      Parameters:
      asName - column name or null for selection expression
    • isAnnotatedByEventFlag

      public boolean isAnnotatedByEventFlag()
      Returns indicator whether annotated as "@eventbean"
      Returns:
      "@eventbean" indicator
    • setAnnotatedByEventFlag

      public void setAnnotatedByEventFlag(boolean annotatedByEventFlag)
      Sets indicator whether annotated as "@eventbean"
      Parameters:
      annotatedByEventFlag - "@eventbean" indicator
    • toEPLElement

      public void toEPLElement(StringWriter writer)
      Renders the element in textual representation.
      Specified by:
      toEPLElement in interface SelectClauseElement
      Parameters:
      writer - to output to