Package org.apache.gravitino.function
Class FunctionParams
java.lang.Object
org.apache.gravitino.function.FunctionParams
Helper methods to create
FunctionParam instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionParamCreate aFunctionParaminstance.static FunctionParamCreate aFunctionParaminstance with an optional comment.static FunctionParamof(String name, Type dataType, String comment, Expression defaultValue) Create aFunctionParaminstance with an optional comment and default value.static FunctionParam[]of(FunctionParam... params) Create a copy of the given array ofFunctionParaminstances.
-
Method Details
-
of
Create a copy of the given array ofFunctionParaminstances.- Parameters:
params- The array of parameters.- Returns:
- A copy of the given array of
FunctionParaminstances.
-
of
Create aFunctionParaminstance.- Parameters:
name- The parameter name.dataType- The parameter type.- Returns:
- A
FunctionParaminstance.
-
of
Create aFunctionParaminstance with an optional comment.- Parameters:
name- The parameter name.dataType- The parameter type.comment- The optional comment.- Returns:
- A
FunctionParaminstance.
-
of
Create aFunctionParaminstance with an optional comment and default value.- Parameters:
name- The parameter name.dataType- The parameter type.comment- The optional comment.defaultValue- The optional default value expression.- Returns:
- A
FunctionParaminstance.
-