|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodResolutionService
Service for resolving methods and aggregation functions, and for creating managing aggregation instances.
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 minMaxType,
Class targetType)
Makes a new min-max-aggregator. |
AggregationSupport |
makePlugInAggregator(String name)
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. |
Method Detail |
---|
Method resolveMethod(String classNameAlias, String methodName, Class[] paramTypes) throws EngineImportException
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 methodAggregationSupport resolveAggregation(String functionName) throws EngineImportUndefinedException, EngineImportException
functionName
- is the aggregation function name
EngineImportUndefinedException
- is the function name cannot be found
EngineImportException
- if there was an error resolving class informationAggregationSupport makePlugInAggregator(String name)
name
- is the plug-in aggregation function name
AggregationMethod makeCountAggregator(boolean isIgnoreNull)
isIgnoreNull
- is true to ignore nulls, or false to count nulls
AggregationMethod makeSumAggregator(Class type)
type
- is the type to be summed up, i.e. float, long etc.
AggregationMethod makeDistinctAggregator(AggregationMethod aggregationMethod, Class childType)
aggregationMethod
- is the inner aggregation methodchildType
- is the return type of the inner expression to aggregate, if any
AggregationMethod makeAvgAggregator()
AggregationMethod makeAvedevAggregator()
AggregationMethod makeMedianAggregator()
AggregationMethod makeMinMaxAggregator(MinMaxTypeEnum minMaxType, Class targetType)
minMaxType
- dedicates whether to do min or maxtargetType
- is the type to max or min
AggregationMethod makeStddevAggregator()
AggregationMethod[] newAggregators(AggregationMethod[] prototypes, MultiKeyUntyped groupKey)
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 |