Interface AggregationFunctionForge
public interface AggregationFunctionForge
Compile-time representation of a plug-in aggregation function.
-
Method Summary
Modifier and TypeMethodDescriptionDescribes to the compiler how it should manage code for the aggregation function.Returns the type of the current value.default void
setFunctionName
(String functionName) Sets the EPL function name assigned to the factory.void
validate
(AggregationFunctionValidationContext 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.
-
Method Details
-
setFunctionName
Sets the EPL function name assigned to the factory.- Parameters:
functionName
- assigned
-
validate
void validate(AggregationFunctionValidationContext validationContext) throws ExprValidationException 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- Throws:
ExprValidationException
- for validation exception
-
getValueType
EPTypeClass getValueType()Returns the type of the current value.- Returns:
- type of value returned by the aggregation methods
-
getAggregationFunctionMode
AggregationFunctionMode getAggregationFunctionMode()Describes to the compiler how it should manage code for the aggregation function.- Returns:
- mode object
-