Class AggregationMultiFunctionValidationContext

java.lang.Object
com.espertech.esper.common.client.hook.aggmultifunc.AggregationMultiFunctionValidationContext

public class AggregationMultiFunctionValidationContext extends Object
Context for use with AggregationFunctionForge provides information about an aggregation function at the time of validation.

At validation time the event type information, parameter expressions and other statement-specific services are available.

  • Constructor Details

    • AggregationMultiFunctionValidationContext

      public AggregationMultiFunctionValidationContext(String functionName, EventType[] eventTypes, ExprNode[] parameterExpressions, String statementName, ExprValidationContext validationContext, ConfigurationCompilerPlugInAggregationMultiFunction config, ExprNode[] allParameterExpressions, ExprNode optionalFilterExpression)
      Ctor.
      Parameters:
      functionName - function name
      eventTypes - event types
      parameterExpressions - expressions
      statementName - statement name
      validationContext - validation context
      config - configuration
      allParameterExpressions - all parameters
      optionalFilterExpression - optional filter parameter
  • Method Details

    • getFunctionName

      public String getFunctionName()
      Returns the aggregation function name
      Returns:
      aggregation function name
    • getEventTypes

      public EventType[] getEventTypes()
      Returns the event types of all events in the select clause
      Returns:
      types
    • getParameterExpressions

      public ExprNode[] getParameterExpressions()
      Returns positional parameters expressions to this aggregation function. Use getAllParameterExpressions() for a list of all parameters including non-positional parameters.
      Returns:
      positional parameter expressions
    • getStatementName

      public String getStatementName()
      Returns the statement name.
      Returns:
      statement name
    • getValidationContext

      public ExprValidationContext getValidationContext()
      Returns additional validation contextual services.
      Returns:
      validation context
    • getConfig

      Returns the original configuration object for the aggregation multi-function
      Returns:
      config
    • getAllParameterExpressions

      public ExprNode[] getAllParameterExpressions()
      Returns positional and non-positional parameters.
      Returns:
      all parameters
    • getOptionalFilterExpression

      public ExprNode getOptionalFilterExpression()
      Returns the filter expression when provided
      Returns:
      filter expression
    • getNamedParameters

      public LinkedHashMap<String,List<ExprNode>> getNamedParameters()
      Gets the named parameters as a list
      Returns:
      named params