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, com.espertech.esper.common.internal.epl.expression.core.ExprNode[] parameterExpressions, String statementName, com.espertech.esper.common.internal.epl.expression.core.ExprValidationContext validationContext, ConfigurationCompilerPlugInAggregationMultiFunction config, com.espertech.esper.common.internal.epl.expression.core.ExprNode[] allParameterExpressions, com.espertech.esper.common.internal.epl.expression.core.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 com.espertech.esper.common.internal.epl.expression.core.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 com.espertech.esper.common.internal.epl.expression.core.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 com.espertech.esper.common.internal.epl.expression.core.ExprNode[] getAllParameterExpressions()
      Returns positional and non-positional parameters.
      Returns:
      all parameters
    • getOptionalFilterExpression

      public com.espertech.esper.common.internal.epl.expression.core.ExprNode getOptionalFilterExpression()
      Returns the filter expression when provided
      Returns:
      filter expression
    • getNamedParameters

      public LinkedHashMap<String,List<com.espertech.esper.common.internal.epl.expression.core.ExprNode>> getNamedParameters()
      Gets the named parameters as a list
      Returns:
      named params