Class FunctionImplDTO

java.lang.Object
org.apache.gravitino.dto.function.FunctionImplDTO
Direct Known Subclasses:
JavaImplDTO, PythonImplDTO, SQLImplDTO

public abstract class FunctionImplDTO extends Object
DTO for function implementation.
  • 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

      public abstract FunctionImpl.Language language()
      Get the language of this implementation.
      Returns:
      The language.
    • toFunctionImpl

      public abstract FunctionImpl toFunctionImpl()
      Convert this DTO to a FunctionImpl instance.
      Returns:
      The function implementation.
    • fromFunctionImpl

      public static FunctionImplDTO fromFunctionImpl(FunctionImpl impl)
      Create a FunctionImplDTO from a FunctionImpl instance.
      Parameters:
      impl - The function implementation.
      Returns:
      The function implementation DTO.