Class FunctionDefinitionDTO
java.lang.Object
org.apache.gravitino.dto.function.FunctionDefinitionDTO
- All Implemented Interfaces:
FunctionDefinition
DTO for function definition.
-
Field Summary
Fields inherited from interface org.apache.gravitino.function.FunctionDefinition
EMPTY_COLUMNS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionDefinitionDTOfromFunctionDefinition(FunctionDefinition definition) Create aFunctionDefinitionDTOfrom aFunctionDefinitioninstance.impls()The output columns for a table-valued function definition.The return type for scalar or aggregate function definitions.Convert this DTO to aFunctionDefinitioninstance.toString()
-
Constructor Details
-
FunctionDefinitionDTO
public FunctionDefinitionDTO()
-
-
Method Details
-
parameters
- Specified by:
parametersin interfaceFunctionDefinition- Returns:
- The parameters for this definition. Maybe an empty array for a no-arg definition.
-
returnType
Description copied from interface:FunctionDefinitionThe return type for scalar or aggregate function definitions.- Specified by:
returnTypein interfaceFunctionDefinition- Returns:
- The return type, or null if this is a table-valued function definition.
-
returnColumns
Description copied from interface:FunctionDefinitionThe output columns for a table-valued function definition.A table-valued function is a function that returns a table instead of a scalar value or an aggregate result. The returned table has a fixed schema defined by the columns returned from this method.
- Specified by:
returnColumnsin interfaceFunctionDefinition- Returns:
- The output columns that define the schema of the table returned by this definition, or an empty array if this is a scalar or aggregate function definition.
-
impls
- Specified by:
implsin interfaceFunctionDefinition- Returns:
- The implementations associated with this definition.
-
toFunctionDefinition
Convert this DTO to aFunctionDefinitioninstance.- Returns:
- The function definition.
-
fromFunctionDefinition
Create aFunctionDefinitionDTOfrom aFunctionDefinitioninstance.- Parameters:
definition- The function definition.- Returns:
- The function definition DTO.
-
toString
-