|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.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)
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. |
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 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)
MethodResolutionService
makeDistinctAggregator
in interface MethodResolutionService
aggregationMethod
- is the inner aggregation method
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |