com.espertech.esper.client.soda
Class PlugInProjectionExpression

java.lang.Object
  extended by com.espertech.esper.client.soda.ExpressionBase
      extended by com.espertech.esper.client.soda.PlugInProjectionExpression
All Implemented Interfaces:
Expression, java.io.Serializable

public class PlugInProjectionExpression
extends ExpressionBase

Represents a plug-in aggregation function.

See Also:
Serialized Form

Constructor Summary
PlugInProjectionExpression()
          Ctor.
PlugInProjectionExpression(java.lang.String functionName, boolean isDistinct)
          Ctor.
PlugInProjectionExpression(java.lang.String functionName, boolean isDistinct, Expression... moreExpressions)
          Ctor.
 
Method Summary
 java.lang.String getFunctionName()
          Returns the function name.
 ExpressionPrecedenceEnum getPrecedence()
          Returns precedence.
 boolean isDistinct()
          Returns true for distinct.
 void setDistinct(boolean distinct)
          Set to true for distinct.
 void setFunctionName(java.lang.String functionName)
          Sets the function name.
 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

PlugInProjectionExpression

public PlugInProjectionExpression()
Ctor.


PlugInProjectionExpression

public PlugInProjectionExpression(java.lang.String functionName,
                                  boolean isDistinct)
Ctor.

Parameters:
functionName - the name of the function
isDistinct - true for distinct

PlugInProjectionExpression

public PlugInProjectionExpression(java.lang.String functionName,
                                  boolean isDistinct,
                                  Expression... moreExpressions)
Ctor.

Parameters:
functionName - the name of the function
isDistinct - true for distinct
moreExpressions - provides aggregated values
Method Detail

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

getFunctionName

public java.lang.String getFunctionName()
Returns the function name.

Returns:
name of function

setFunctionName

public void setFunctionName(java.lang.String functionName)
Sets the function name.

Parameters:
functionName - name of function

isDistinct

public boolean isDistinct()
Returns true for distinct.

Returns:
boolean indicating distinct or not

setDistinct

public void setDistinct(boolean distinct)
Set to true for distinct.

Parameters:
distinct - indicating distinct or not

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