Class EPLValidationUtil
java.lang.Object
com.espertech.esper.common.internal.epl.util.EPLValidationUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getInvokablePrefix
(String invocableName, String invocableType, boolean isFunction) static void
validateAlreadyExistsTableOrVariable
(String name, VariableCompileTimeResolver variableCompileTimeResolver, TableCompileTimeResolver tableCompileTimeResolver, EventTypeCompileTimeResolver eventTypeCompileTimeResolver) static void
validateContextName
(boolean table, String tableOrNamedWindowName, String tableOrNamedWindowContextName, String optionalContextName, boolean mustMatchContext) static ExprNode
validateEventPrecedence
(boolean insertingIntoTable, ExprNode eventPrecedence, EventType resultEventType, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) static QueryGraphForge
validateFilterGetQueryGraphSafe
(ExprNode filterExpression, StreamTypeServiceImpl typeService, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) static void
validateFilterWQueryGraphSafe
(QueryGraphForge queryGraph, ExprNode filterExpression, StreamTypeServiceImpl typeService, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) static void
validateParameterNumber
(String invocableName, String invocableCategory, boolean isFunction, int expectedEnum, int receivedNum) static void
validateParametersTypePredefined
(ExprNode[] expressions, String invocableName, String invocableCategory, EPLExpressionParamType type) static void
validateParameterType
(String invocableName, String invocableCategory, boolean isFunction, EPLExpressionParamType expectedTypeEnum, Class[] expectedTypeClasses, EPType providedTypeCanNull, int parameterNum, ExprNode parameterExpression) static ExprNode
validateSimpleGetSubtree
(ExprNodeOrigin origin, ExprNode expression, EventType optionalEventType, boolean allowBindingConsumption, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) static void
validateTableExists
(TableCompileTimeResolver tableCompileTimeResolver, String name)
-
Constructor Details
-
EPLValidationUtil
public EPLValidationUtil()
-
-
Method Details
-
validateEventPrecedence
public static ExprNode validateEventPrecedence(boolean insertingIntoTable, ExprNode eventPrecedence, EventType resultEventType, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) throws ExprValidationException - Throws:
ExprValidationException
-
validateParametersTypePredefined
public static void validateParametersTypePredefined(ExprNode[] expressions, String invocableName, String invocableCategory, EPLExpressionParamType type) throws ExprValidationException - Throws:
ExprValidationException
-
validateTableExists
public static void validateTableExists(TableCompileTimeResolver tableCompileTimeResolver, String name) throws ExprValidationException - Throws:
ExprValidationException
-
validateSimpleGetSubtree
public static ExprNode validateSimpleGetSubtree(ExprNodeOrigin origin, ExprNode expression, EventType optionalEventType, boolean allowBindingConsumption, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) throws ExprValidationException - Throws:
ExprValidationException
-
validateFilterGetQueryGraphSafe
public static QueryGraphForge validateFilterGetQueryGraphSafe(ExprNode filterExpression, StreamTypeServiceImpl typeService, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) -
validateFilterWQueryGraphSafe
public static void validateFilterWQueryGraphSafe(QueryGraphForge queryGraph, ExprNode filterExpression, StreamTypeServiceImpl typeService, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) -
validateParameterNumber
public static void validateParameterNumber(String invocableName, String invocableCategory, boolean isFunction, int expectedEnum, int receivedNum) throws ExprValidationException - Throws:
ExprValidationException
-
validateParameterType
public static void validateParameterType(String invocableName, String invocableCategory, boolean isFunction, EPLExpressionParamType expectedTypeEnum, Class[] expectedTypeClasses, EPType providedTypeCanNull, int parameterNum, ExprNode parameterExpression) throws ExprValidationException - Throws:
ExprValidationException
-
getInvokablePrefix
-
validateContextName
public static void validateContextName(boolean table, String tableOrNamedWindowName, String tableOrNamedWindowContextName, String optionalContextName, boolean mustMatchContext) throws ExprValidationException - Throws:
ExprValidationException
-
validateAlreadyExistsTableOrVariable
public static void validateAlreadyExistsTableOrVariable(String name, VariableCompileTimeResolver variableCompileTimeResolver, TableCompileTimeResolver tableCompileTimeResolver, EventTypeCompileTimeResolver eventTypeCompileTimeResolver) throws ExprValidationException - Throws:
ExprValidationException
-