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, Serializable

public class PlugInProjectionExpression
extends ExpressionBase

Represents a plug-in aggregation function.

See Also:
Serialized Form

Constructor Summary
PlugInProjectionExpression(String functionName, boolean isDistinct)
          Ctor.
PlugInProjectionExpression(String functionName, boolean isDistinct, Expression expression)
          Ctor.
 
Method Summary
 String getFunctionName()
          Returns the function name.
 boolean isDistinct()
          Returns true for distinct.
 void setDistinct(boolean distinct)
          Set to true for distinct.
 void setFunctionName(String functionName)
          Sets the function name.
 void toEPL(StringWriter writer)
          Renders the clause in textual representation.
 
Methods inherited from class com.espertech.esper.client.soda.ExpressionBase
addChild, getChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlugInProjectionExpression

public PlugInProjectionExpression(String functionName,
                                  boolean isDistinct)
Ctor.

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

PlugInProjectionExpression

public PlugInProjectionExpression(String functionName,
                                  boolean isDistinct,
                                  Expression expression)
Ctor.

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

toEPL

public void toEPL(StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

getFunctionName

public String getFunctionName()
Returns the function name.

Returns:
name of function

setFunctionName

public void setFunctionName(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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com