com.espertech.esper.client.soda
Class NewOperatorExpression

java.lang.Object
  extended by com.espertech.esper.client.soda.ExpressionBase
      extended by com.espertech.esper.client.soda.NewOperatorExpression
All Implemented Interfaces:
Expression, java.io.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:
Serialized Form

Constructor Summary
NewOperatorExpression()
          Ctor.
NewOperatorExpression(java.util.List<java.lang.String> columnNames)
          Ctor.
 
Method Summary
 java.util.List<java.lang.String> getColumnNames()
          Returns the column names.
 ExpressionPrecedenceEnum getPrecedence()
          Returns precedence.
 void setColumnNames(java.util.List<java.lang.String> columnNames)
          Sets the column names.
 void toPrecedenceFreeEPL(java.io.StringWriter writer)
          Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
 
Methods inherited from class com.espertech.esper.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewOperatorExpression

public NewOperatorExpression()
Ctor.


NewOperatorExpression

public NewOperatorExpression(java.util.List<java.lang.String> columnNames)
Ctor.

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

Parameters:
columnNames - list of column names
Method Detail

getColumnNames

public java.util.List<java.lang.String> getColumnNames()
Returns the column names.

Returns:
colum names

setColumnNames

public void setColumnNames(java.util.List<java.lang.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(java.io.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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com