|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.ExpressionBase
com.espertech.esper.client.soda.NewOperatorExpression
public class NewOperatorExpression
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.
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 |
---|
public NewOperatorExpression()
public NewOperatorExpression(java.util.List<java.lang.String> columnNames)
The list of column names should match the number of expressions provided hereunder.
columnNames
- list of column namesMethod Detail |
---|
public java.util.List<java.lang.String> getColumnNames()
public void setColumnNames(java.util.List<java.lang.String> columnNames)
columnNames
- colum names to setpublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |