public class AggregationFunctionValidationContext
extends java.lang.Object
AggregationFunctionForge
.
This context object provides access to the parameter expressions themselves as well as information compiled from the parameter expressions for your convenience.
Constructor and Description |
---|
AggregationFunctionValidationContext(java.lang.Class[] parameterTypes,
boolean[] constantValue,
java.lang.Object[] constantValues,
boolean distinct,
boolean windowed,
com.espertech.esper.common.internal.epl.expression.core.ExprNode[] expressions,
java.util.LinkedHashMap<java.lang.String,java.util.List<com.espertech.esper.common.internal.epl.expression.core.ExprNode>> namedParameters)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getConstantValues()
If a parameter expression returns a constant value, the value of the constant it returns
is provided in this array.
|
com.espertech.esper.common.internal.epl.expression.core.ExprNode[] |
getExpressions()
Returns the parameter expressions themselves for interrogation.
|
boolean[] |
getIsConstantValue()
A boolean indicator for each parameter expression that is true if the expression
returns a constant result or false if the expression result is not a constant value.
|
java.util.LinkedHashMap<java.lang.String,java.util.List<com.espertech.esper.common.internal.epl.expression.core.ExprNode>> |
getNamedParameters()
Returns any named parameters or null if there are no named parameters
|
java.lang.Class[] |
getParameterTypes()
The return type of each parameter expression.
|
boolean |
isDistinct()
Returns true to indicate that the 'distinct' keyword was specified for this aggregation function.
|
boolean |
isWindowed()
Returns true to indicate that all parameter expressions return event properties that originate from a stream that
provides a remove stream.
|
public AggregationFunctionValidationContext(java.lang.Class[] parameterTypes, boolean[] constantValue, java.lang.Object[] constantValues, boolean distinct, boolean windowed, com.espertech.esper.common.internal.epl.expression.core.ExprNode[] expressions, java.util.LinkedHashMap<java.lang.String,java.util.List<com.espertech.esper.common.internal.epl.expression.core.ExprNode>> namedParameters)
parameterTypes
- the type of each parameter expression.constantValue
- for each parameter expression an indicator whether the expression returns a constant resultconstantValues
- for each parameter expression that returns a constant result this array contains the constant valuedistinct
- true if 'distinct' keyword was providedwindowed
- true if all event properties references by parameter expressions are from streams that have data windows declared onto the stream or are from named windowsexpressions
- the parameter expressions themselves (positional parameters only)namedParameters
- provided when there are named parameters, such as the "filter:expression" parameterpublic java.lang.Class[] getParameterTypes()
This information can also be obtained by calling getType on each parameter expression.
public boolean[] getIsConstantValue()
This information can also be obtained by calling isConstantResult on each parameter expression.
public java.lang.Object[] getConstantValues()
This information can also be obtained by calling evaluate on each parameter expression providing a constant value.
public boolean isDistinct()
public boolean isWindowed()
public com.espertech.esper.common.internal.epl.expression.core.ExprNode[] getExpressions()
public java.util.LinkedHashMap<java.lang.String,java.util.List<com.espertech.esper.common.internal.epl.expression.core.ExprNode>> getNamedParameters()