|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.core.MethodResolutionServiceImpl
public class MethodResolutionServiceImpl
Implements method resolution.
Constructor Summary | |
---|---|
MethodResolutionServiceImpl(EngineImportService engineImportService)
Ctor. |
Method Summary | |
---|---|
AggregationMethod |
makeAvedevAggregator()
Makes a new avedev-aggregator. |
AggregationMethod |
makeAvgAggregator()
Makes a new avg-aggregator. |
AggregationMethod |
makeCountAggregator(boolean isIgnoreNull)
Makes a new count-aggregator. |
AggregationMethod |
makeDistinctAggregator(AggregationMethod aggregationMethod,
Class childType)
Makes a new distinct-value-aggregator. |
AggregationMethod |
makeMedianAggregator()
Makes a new median-aggregator. |
AggregationMethod |
makeMinMaxAggregator(MinMaxTypeEnum minMaxTypeEnum,
Class targetType)
Makes a new min-max-aggregator. |
AggregationSupport |
makePlugInAggregator(String functionName)
Makes a new plug-in aggregation instance by name. |
AggregationMethod |
makeStddevAggregator()
Makes a new stddev-aggregator. |
AggregationMethod |
makeSumAggregator(Class type)
Makes a new sum-aggregator. |
AggregationMethod[] |
newAggregators(AggregationMethod[] prototypes,
MultiKeyUntyped groupKey)
Returns a new set of aggregators given an existing prototype-set of aggregators for a given group key. |
AggregationSupport |
resolveAggregation(String functionName)
Returns a plug-in aggregation method for a given configured aggregation function name. |
Class |
resolveClass(String classNameAlias)
Resolves a given class name, either fully qualified and simple and imported to a class. |
Method |
resolveMethod(Class clazz,
String methodName,
Class[] paramTypes)
Resolves a given method name and list of parameter types to an instance or static method exposed by the given class. |
Method |
resolveMethod(String classNameAlias,
String methodName)
Resolves a given class and method name to a static method, not allowing overloaded methods and expecting the method to be found exactly once with zero or more parameters. |
Method |
resolveMethod(String classNameAlias,
String methodName,
Class[] paramTypes)
Resolves a given class, method and list of parameter types to a static method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodResolutionServiceImpl(EngineImportService engineImportService)
engineImportService
- is the engine importsMethod Detail |
---|
public AggregationSupport makePlugInAggregator(String functionName)
MethodResolutionService
makePlugInAggregator
in interface MethodResolutionService
functionName
- is the plug-in aggregation function name
public Method resolveMethod(String classNameAlias, String methodName, Class[] paramTypes) throws EngineImportException
MethodResolutionService
resolveMethod
in interface MethodResolutionService
classNameAlias
- is the class name to usemethodName
- is the method nameparamTypes
- is parameter types match expression sub-nodes
EngineImportException
- if the method cannot be resolved to a visible static methodpublic Method resolveMethod(String classNameAlias, String methodName) throws EngineImportException
MethodResolutionService
resolveMethod
in interface MethodResolutionService
classNameAlias
- is the class name to usemethodName
- is the method name
EngineImportException
- if the method cannot be resolved to a visible static method, or if the method exists more
then once with different parameterspublic Class resolveClass(String classNameAlias) throws EngineImportException
MethodResolutionService
resolveClass
in interface MethodResolutionService
classNameAlias
- is the class name to use
EngineImportException
- if there was an error resolving the classpublic Method resolveMethod(Class clazz, String methodName, Class[] paramTypes) throws EngineImportException
MethodResolutionService
resolveMethod
in interface MethodResolutionService
clazz
- is the class to look for a fitting methodmethodName
- is the method nameparamTypes
- is parameter types match expression sub-nodes
EngineImportException
- if the method cannot be resolved to a visible static or instance methodpublic AggregationMethod makeCountAggregator(boolean isIgnoreNull)
MethodResolutionService
makeCountAggregator
in interface MethodResolutionService
isIgnoreNull
- is true to ignore nulls, or false to count nulls
public AggregationSupport resolveAggregation(String functionName) throws EngineImportUndefinedException, EngineImportException
MethodResolutionService
resolveAggregation
in interface MethodResolutionService
functionName
- is the aggregation function name
EngineImportUndefinedException
- is the function name cannot be found
EngineImportException
- if there was an error resolving class informationpublic AggregationMethod makeSumAggregator(Class type)
MethodResolutionService
makeSumAggregator
in interface MethodResolutionService
type
- is the type to be summed up, i.e. float, long etc.
public AggregationMethod makeDistinctAggregator(AggregationMethod aggregationMethod, Class childType)
MethodResolutionService
makeDistinctAggregator
in interface MethodResolutionService
aggregationMethod
- is the inner aggregation methodchildType
- is the return type of the inner expression to aggregate, if any
public AggregationMethod makeAvgAggregator()
MethodResolutionService
makeAvgAggregator
in interface MethodResolutionService
public AggregationMethod makeAvedevAggregator()
MethodResolutionService
makeAvedevAggregator
in interface MethodResolutionService
public AggregationMethod makeMedianAggregator()
MethodResolutionService
makeMedianAggregator
in interface MethodResolutionService
public AggregationMethod makeMinMaxAggregator(MinMaxTypeEnum minMaxTypeEnum, Class targetType)
MethodResolutionService
makeMinMaxAggregator
in interface MethodResolutionService
minMaxTypeEnum
- dedicates whether to do min or maxtargetType
- is the type to max or min
public AggregationMethod makeStddevAggregator()
MethodResolutionService
makeStddevAggregator
in interface MethodResolutionService
public AggregationMethod[] newAggregators(AggregationMethod[] prototypes, MultiKeyUntyped groupKey)
MethodResolutionService
newAggregators
in interface MethodResolutionService
prototypes
- is the prototypesgroupKey
- is the key to group-by for
|
© 2007 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 |