Interface AggregationFunctionForge


public interface AggregationFunctionForge
Compile-time representation of a plug-in aggregation function.
  • Method Summary

    Modifier and Type
    Method
    Description
    Describes 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
    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

      default void setFunctionName(String functionName)
      Sets the EPL function name assigned to the factory.
      Parameters:
      functionName - assigned
    • validate

      void validate(AggregationFunctionValidationContext validationContext) throws com.espertech.esper.common.internal.epl.expression.core.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:
      com.espertech.esper.common.internal.epl.expression.core.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