Class NewOperatorExpression

java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.NewOperatorExpression
All Implemented Interfaces:
Expression, Serializable

public class NewOperatorExpression extends ExpressionBase
The "new" operator is useful to format an event or event property from a list of column names and expressions.

Useful with enumeration methods and with case-when clauses that return multiple result values, for example.

Column names are part of the state and the number of column names must match the number of sub-expressions to the expression.

See Also:
  • Constructor Details

    • NewOperatorExpression

      public NewOperatorExpression()
      Ctor.
    • NewOperatorExpression

      public NewOperatorExpression(List<String> columnNames)
      Ctor.

      The list of column names should match the number of expressions provided hereunder.

      Parameters:
      columnNames - list of column names
  • Method Details

    • getColumnNames

      public List<String> getColumnNames()
      Returns the column names.
      Returns:
      colum names
    • setColumnNames

      public void setColumnNames(List<String> columnNames)
      Sets the column names.
      Parameters:
      columnNames - colum names to set
    • getPrecedence

      public ExpressionPrecedenceEnum getPrecedence()
      Description copied from interface: Expression
      Returns precedence.
      Returns:
      precedence
    • toPrecedenceFreeEPL

      public void toPrecedenceFreeEPL(StringWriter writer)
      Description copied from class: ExpressionBase
      Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
      Specified by:
      toPrecedenceFreeEPL in class ExpressionBase
      Parameters:
      writer - is the output to use