Class FunctionImplDTO
java.lang.Object
org.apache.gravitino.dto.function.FunctionImplDTO
- Direct Known Subclasses:
JavaImplDTO,PythonImplDTO,SQLImplDTO
DTO for function implementation.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for Jackson.protectedFunctionImplDTO(String runtime, FunctionResourcesDTO resources, Map<String, String> properties) Constructor for FunctionImplDTO. -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionImplDTOfromFunctionImpl(FunctionImpl impl) Create aFunctionImplDTOfrom aFunctionImplinstance.abstract FunctionImpl.Languagelanguage()Get the language of this implementation.abstract FunctionImplConvert this DTO to aFunctionImplinstance.
-
Constructor Details
-
FunctionImplDTO
protected FunctionImplDTO()Default constructor for Jackson. -
FunctionImplDTO
protected FunctionImplDTO(String runtime, FunctionResourcesDTO resources, Map<String, String> properties) Constructor for FunctionImplDTO.- Parameters:
runtime- The runtime type.resources- The function resources.properties- The properties.
-
-
Method Details
-
language
Get the language of this implementation.- Returns:
- The language.
-
toFunctionImpl
Convert this DTO to aFunctionImplinstance.- Returns:
- The function implementation.
-
fromFunctionImpl
Create aFunctionImplDTOfrom aFunctionImplinstance.- Parameters:
impl- The function implementation.- Returns:
- The function implementation DTO.
-