Class NewOperatorExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.NewOperatorExpression
- All Implemented Interfaces:
Expression
,Serializable
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the column names.Returns precedence.void
setColumnNames
(List<String> columnNames) Sets the column names.void
toPrecedenceFreeEPL
(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.common.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
-
Constructor Details
-
NewOperatorExpression
public NewOperatorExpression()Ctor. -
NewOperatorExpression
Ctor.The list of column names should match the number of expressions provided hereunder.
- Parameters:
columnNames
- list of column names
-
-
Method Details
-
getColumnNames
Returns the column names.- Returns:
- colum names
-
setColumnNames
Sets the column names.- Parameters:
columnNames
- colum names to set
-
getPrecedence
Description copied from interface:Expression
Returns precedence.- Returns:
- precedence
-
toPrecedenceFreeEPL
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 classExpressionBase
- Parameters:
writer
- is the output to use
-