Class DataFlowParameterValidation
java.lang.Object
com.espertech.esper.common.client.dataflow.util.DataFlowParameterValidation
Utility for validation data flow forge parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExprNode
validate
(String name, ExprNode expr, EventType eventType, Class expectedReturnType, DataFlowOpForgeInitializeContext context) Validate the provided expression.static ExprNode
validate
(String name, ExprNode expr, Class expectedReturnType, DataFlowOpForgeInitializeContext context) Validate the provided expression.
-
Constructor Details
-
DataFlowParameterValidation
public DataFlowParameterValidation()
-
-
Method Details
-
validate
public static ExprNode validate(String name, ExprNode expr, Class expectedReturnType, DataFlowOpForgeInitializeContext context) throws ExprValidationException Validate the provided expression.- Parameters:
name
- parameter nameexpr
- expressionexpectedReturnType
- expected result typecontext
- forge initialization context- Returns:
- validated expression node
- Throws:
ExprValidationException
- when validation failed
-
validate
public static ExprNode validate(String name, ExprNode expr, EventType eventType, Class expectedReturnType, DataFlowOpForgeInitializeContext context) throws ExprValidationException Validate the provided expression.- Parameters:
name
- parameter nameeventType
- event typeexpr
- expressionexpectedReturnType
- expected result typecontext
- forge initialization context- Returns:
- validated expression node
- Throws:
ExprValidationException
- when validation failed
-