com.espertech.esper.epl.agg.service
Class AggregationSupport

java.lang.Object
  extended by com.espertech.esper.epl.agg.service.AggregationSupport
All Implemented Interfaces:
AggregationMethod

public abstract class AggregationSupport
extends java.lang.Object
implements AggregationMethod

Base class for use with plug-in aggregation functions.


Field Summary
protected  java.lang.String functionName
          Provides the aggregation function name.
 
Constructor Summary
AggregationSupport()
          Ctor.
 
Method Summary
 java.lang.String getFunctionName()
          Returns the name of the aggregation function.
 void setFunctionName(java.lang.String functionName)
          Sets the aggregation function name.
abstract  void validate(AggregationValidationContext validationContext)
          Implemented by plug-in aggregation functions to allow such functions to validate the type of values passed to the function at statement compile time and to generally interrogate parameter expressions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.epl.agg.aggregator.AggregationMethod
clear, enter, getValue, getValueType, leave
 

Field Detail

functionName

protected java.lang.String functionName
Provides the aggregation function name.

Constructor Detail

AggregationSupport

public AggregationSupport()
Ctor.

Method Detail

validate

public abstract void validate(AggregationValidationContext validationContext)
Implemented by plug-in aggregation functions to allow such functions to validate the type of values passed to the function at statement compile time and to generally interrogate parameter expressions.

Parameters:
validationContext - expression information

setFunctionName

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

Parameters:
functionName - is the name of the aggregation function

getFunctionName

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

Returns:
aggregation function name

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